void (final Class<? extends InconsistentResourceBundleInspectionProvider>... providerClasses) { Set<Class<? extends InconsistentResourceBundleInspectionProvider>> providersToEnable = ContainerUtil.newHashSet(providerClasses); for (InconsistentResourceBundleInspectionProvider inspectionProvider : myInspectionProviders.getValue()) { if (providersToEnable.contains(inspectionProvider.getClass())) { mySettings.put(inspectionProvider.getName(), true); } } }