boolean (@NotNull VirtualFile file) { if (file.isDirectory()) return false; FileViewProvider viewProvider = myPsiManager.findViewProvider(file); return viewProvider != null && viewProvider.hasLanguage(JavaLanguage.INSTANCE); }