public void cleanup(Project project) { for (final ToolsImpl toolList : myTools.values()) { if (toolList.isEnabled()) { for (InspectionProfileEntry tool : toolList.getAllTools()) { tool.projectClosed(project); if (((InspectionTool) tool).getContext() != null) { ((InspectionTool) tool).cleanup(); } } } } }