List<Tools> () { InspectionProfileImpl profile = getCurrentProfile(); List<Tools> tools = profile.getAllEnabledInspectionTools(myProject); Set<InspectionToolWrapper<?, ?>> dependentTools = new LinkedHashSet<>(); for (Tools tool : tools) { profile.collectDependentInspections(tool.getTool(), dependentTools, getProject()); } if (dependentTools.isEmpty()) { return tools; } Set<Tools> set = CollectionFactory.createCustomHashingStrategySet(TOOLS_HASHING_STRATEGY); set.addAll(tools); set.addAll(ContainerUtil.map(dependentTools, toolWrapper -> new ToolsImpl(toolWrapper, toolWrapper.getDefaultLevel(), true, true))); return new ArrayList<>(set); }