private static boolean isToolEnabled(@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));
  }
private static boolean isToolEnabled(@NotNull InspectionProfile profile, @NotNull String shortName)