List<Tools> (Project project) { initInspectionTools(); List<Tools> result = new ArrayList<>(); Set<String> projectTypes = ProjectTypeService.getProjectTypeIds(project); boolean isTests = ApplicationManager.getApplication().isUnitTestMode(); for (ToolsImpl toolList : myTools.values()) { if (toolList.isEnabled()) { InspectionToolWrapper<?, ?> toolWrapper = toolList.getTool(); if (!isTests && !toolWrapper.isApplicable(projectTypes)) { continue; } result.add(toolList); } } return result; }