private static void collectInnerClassNames(PsiJavaCodeReferenceElement reference,
                                               List<? super PsiJavaCodeReferenceElement> references) {
      PsiElement rParent = reference.getParent();
      while (rParent instanceof PsiJavaCodeReferenceElement parentReference) {
        if (!reference.equals(parentReference.getQualifier())) {
          break;
        }
        references.add(parentReference);
        rParent = rParent.getParent();
      }
    }
private static void collectInnerClassNames(PsiJavaCodeReferenceElement reference,
                                               List<? super PsiJavaCodeReferenceElement> references)