void (@NotNull PsiConstructorCall constructorCall) { if (myRefCountHolder != null) { JavaResolveResult resolveResult = constructorCall.resolveMethodGenerics(); PsiElement resolved = resolveResult.getElement(); if (resolved instanceof PsiNamedElement) { myRefCountHolder.registerLocallyReferenced((PsiNamedElement)resolved); } } }