public static HighlightDisplayLevel getHighlightDisplayLevel(Project project, GrReferenceElement ref) {
    return getInspectionProfile(project).getErrorLevel(findDisplayKey(), ref);
  }
public static HighlightDisplayLevel getHighlightDisplayLevel(Project project, GrReferenceElement ref)