@Override
  public void visitReferenceElement(@NotNull PsiJavaCodeReferenceElement reference) {
    PsiElement resolved = reference.resolve();

    if (!(resolved instanceof PsiModifierListOwner owner)) return;
    checkPreviewFeature(reference, reference, owner);
  }
@Override
  public void visitReferenceElement(@NotNull PsiJavaCodeReferenceElement reference)