void (@NotNull List<? extends InspectionToolWrapper<?, ?>> toolWrappers) { if (alreadyChecked) { return; } alreadyChecked = true; Set<InspectionProfileEntry> uniqueTools = new HashSet<>(toolWrappers.size()); for (InspectionToolWrapper<?, ?> toolWrapper : toolWrappers) { ProgressManager.checkCanceled(); if (!uniqueTools.add(toolWrapper.getTool())) { LOG.error("Inspection " + toolWrapper.getDisplayName() + " (" + toolWrapper.getTool().getClass() + ") already registered"); } } }