LocalInspectionToolWrapper (String name, boolean enabled) { LocalInspectionEP ep = new LocalInspectionEP(); ep.shortName = ep.displayName = ep.groupDisplayName = name; ep.level = "ERROR"; ep.enabledByDefault = enabled; ep.implementationClass = TestTool.class.getName(); return new LocalInspectionToolWrapper(ep); }