void (@NotNull PsiJavaCodeReferenceElement reference) { PsiElement resolved = reference.resolve(); if (!(resolved instanceof PsiModifierListOwner owner)) return; checkPreviewFeature(reference, reference, owner); }