blob: 60bface8028e926077031a4a74966e516fec0756 [file] [log] [blame]
package com.google.idea.sdkcompat.profile;
import com.intellij.codeInspection.ex.InspectionProfileImpl;
import com.intellij.openapi.project.Project;
import com.intellij.profile.codeInspection.InspectionProjectProfileManager;
/** Utility to bridge different SDK versions. */
public class InspectionProfileUtil {
public static void disableTool(String toolName, Project project) {
InspectionProfileImpl profile =
(InspectionProfileImpl)
InspectionProjectProfileManager.getInstance(project).getInspectionProfile();
profile.disableTool(toolName, project);
}
}