void (@NotNull UExpression expression, @Nullable PsiType type) { PsiElement aClass = PsiUtil.resolveClassInType(type); if (aClass != null) { aClass = ((PsiClass)aClass).getSourceElement(); } if (aClass != null) { final RefElement refWhat = refManager.getReference(aClass); if (refWhat != null) refWhat.initializeIfNeeded(); refFrom.addReference(refWhat, aClass, decl, false, true, null); } PsiElement functionalExpr = expression.getSourcePsi(); RefElement refFunctionalExpr = refManager.getReference(functionalExpr); if (refFunctionalExpr != null) refFunctionalExpr.initializeIfNeeded(); refFrom.addReference(refFunctionalExpr, functionalExpr, decl, false, true, expression); }