Language (@NotNull VirtualFile file, @NotNull Project project, @NotNull FileType fileType) { if (fileType.isBinary()) return Language.ANY; if (isTooLargeForIntelligence(file)) return PlainTextLanguage.INSTANCE; Language language = LanguageUtil.getLanguageForPsi(project, file, fileType); return language != null ? language : PlainTextLanguage.INSTANCE; }