void (PsiType type) { type = type.getDeepComponentType(); if (type instanceof PsiClassType) { type.accept(new PsiTypeVisitor<Void>() { @Override public Void visitClassType(@NotNull PsiClassType classType) { for (PsiType parameter : classType.getParameters()) { parameter.accept(this); } UClass target = UastContextKt.toUElement(classType.resolve(), UClass.class); if (target != null) { final RefElement refElement = refManager.getReference(target.getSourcePsi()); if (refElement != null) refElement.initializeIfNeeded(); refFrom.addReference(refElement, target.getSourcePsi(), decl, false, true, null); } return null; } }); } }