private boolean isEnabled(@NotNull PsiElement anchor) {
    if (myIsEnabled == null) {
      Boolean overridden = overriddenUnresolvedReferenceInspection(anchor.getContainingFile());
      myIsEnabled = Objects.requireNonNullElse(overridden, true);
    }
    return myIsEnabled;
  }
private boolean isEnabled(@NotNull PsiElement anchor)