private static @NotNull Map<Class<?>, LocalInspectionTool> getInspectionToolMap(@NotNull Project project,
                                                                                  @NotNull InspectionProjectProfileManager profileManager) {
    Map<Class<?>, LocalInspectionTool> allTools = new IdentityHashMap<>();
    InspectionProfile profile = profileManager.getCurrentProfile();
    for (Tools tools : profile.getAllEnabledInspectionTools(project)) {
      InspectionProfileEntry inspectionProfileEntry = tools.getTool().getTool();
      if (inspectionProfileEntry instanceof LocalInspectionTool) {
        allTools.put(inspectionProfileEntry.getClass(), (LocalInspectionTool)inspectionProfileEntry);
      }
    }
    return allTools;
  }
private static @NotNull Map<Class<?>, LocalInspectionTool> getInspectionToolMap(@NotNull Project project,
                                                                                  @NotNull InspectionProjectProfileManager profileManager)