HashSet<String> () { HashSet<String> inspectionIds = new HashSet<>(); for (InspectionEP ep : InspectionEP.GLOBAL_INSPECTION.getExtensionList()) { if (getPluginInfoByDescriptor(ep.getPluginDescriptor()).isDevelopedByJetBrains()) { inspectionIds.add(ep.getShortName()); } } for (LocalInspectionEP ep : LocalInspectionEP.LOCAL_INSPECTION.getExtensionList()) { if (getPluginInfoByDescriptor(ep.getPluginDescriptor()).isDevelopedByJetBrains()) { String epId = ep.id; String id = epId == null ? ep.getShortName() : epId; inspectionIds.add(id); } } return inspectionIds; }