LanguageCompilerRefAdapter (@NotNull FileType fileType, boolean includeExternalLanguageHelper) { for (LanguageCompilerRefAdapter adapter : EP_NAME.getExtensionList()) { if (adapter.getFileTypes().contains(fileType) || includeExternalLanguageHelper && adapter instanceof ExternalLanguageHelper && adapter.getAffectedFileTypes().contains(fileType)) { return adapter; } } return null; }