boolean (@NotNull Project project, @NotNull VirtualFile file) { return FileTypeRegistry.getInstance().isFileOfType(file, getFileType()) || (ScratchUtil.isScratch(file) && LanguageUtil.getLanguageForPsi(project, file) == getFileLanguage()); }