Set<Language> () { Set<Language> result = new HashSet<>(); ExtensionPoint<LanguageExtensionPoint<TextExtractor>> ep = ApplicationManager.getApplication().getExtensionArea().getExtensionPoint(EP.getName()); for (var point : ep.getExtensionList()) { ContainerUtil.addIfNotNull(result, Language.findLanguageByID(point.language)); } //noinspection deprecation for (var point : LanguageGrammarChecking.EP_NAME.getExtensionList()) { ContainerUtil.addIfNotNull(result, Language.findLanguageByID(point.language)); } return result; }