Intellij stopped detecting .java files
your java files may not be Context root folder.
Check Project Structure -> Modules -> Sources
Files -> Invalidate caches / Restart worked for me.
your java files may not be Context root folder.
Check Project Structure -> Modules -> Sources
Files -> Invalidate caches / Restart worked for me.