To view the list of file types recognized by IntelliJ IDEA, go to Settings/Preferences (Ctrl+Alt+S) | Editor | File Types. If a file in your project is marked with the icon, it indicates that IntelliJ IDEA can't recognize it. In this case, you can register and configure a new file type.
Final Java class
Java class that contains declaration of the main() method.