private static void qualify(PsiElement referent, PsiElement referee, String hidingLocalName) {
    if (referent instanceof PsiReferenceExpression ref &&
        referee instanceof PsiMember && !ref.isQualified() &&
        hidingLocalName.equals(ref.getReferenceName())) {
      final PsiElement newlyResolved = ref.resolve();
      if (referee.getManager().areElementsEquivalent(newlyResolved, referee)) return;
      RenameJavaMemberProcessor.qualifyMember((PsiMember)referee, referent, hidingLocalName);
    }
  }
private static void qualify(PsiElement referent, PsiElement referee, String hidingLocalName)