boolean (@NotNull InspectionProfile profile, @NotNull String shortName) { if (profile instanceof InspectionProfileImpl) { ToolsImpl tools = ((InspectionProfileImpl)profile).getToolsOrNull(shortName, null); if (tools != null) { return tools.isEnabled(); } } return profile.isToolEnabled(HighlightDisplayKey.find(shortName)); }