boolean (@NotNull Project project, @NotNull Editor editor, @NotNull final PsiFile file) { final FileType fileType = file.getFileType(); return fileType instanceof LanguageFileType && LanguageFormatting.INSTANCE.forContext(((LanguageFileType)fileType).getLanguage(), file) != null; }