boolean (@NotNull VirtualFile file) { FileTypeRegistry fileTypeRegistry = FileTypeRegistry.getInstance(); Object obj = fileTypeRegistry.getFileTypeByFileName(file.getName()); LanguageFileType languageFileType = obj instanceof LanguageFileType ? (LanguageFileType)obj : null; return languageFileType != null && languageFileType.getLanguage() instanceof JvmLanguage; }