void (@NotNull PsiJavaCodeReferenceElement reference) { final int offset = reference.getTextOffset(); if (offset > finalEndOffset) { return; } super.visitReferenceElement(reference); if (offset + reference.getTextLength() < finalStartOffset) { return; } if (reference.getTypeParameters().length != 0 || reference instanceof PsiMethodReferenceExpression) { return; } final PsiElement target = reference.resolve(); if (!(target instanceof PsiMember member)) { return; } if (!member.hasModifierProperty(PsiModifier.STATIC)) { return; } if (reference.getQualifier() == null) { return; } references.add(reference); }