boolean (@NotNull VirtualFile file) { FileType fileType = file.getFileType(); if (fileType instanceof LanguageFileType) { Language language = ((LanguageFileType)fileType).getLanguage(); return LanguageFormatting.INSTANCE.forLanguage(language) != null; } return false; }