ASTNode (@NotNull CompositeElement reference, @NotNull PsiClass refClass, boolean addImports) { @NotNull final PsiJavaCodeReferenceElement psiReference = (PsiJavaCodeReferenceElement)reference.getPsi(); final PsiQualifiedReferenceElement reference1 = getClassReferenceToShorten(refClass, addImports, psiReference); if (reference1 != null) replaceReferenceWithShort(reference1); return reference; }