Collection<PsiReference> (SearchScope referencesSearchScope) { final ArrayList<PsiReference> references = new ArrayList<>(super.collectRefs(referencesSearchScope)); final PsiNamedElement variable = getVariable(); if (variable != null) { final PsiElement substituted = getSubstituted(); if (substituted != null && substituted != variable) { references.addAll(ReferencesSearch.search(substituted, referencesSearchScope, false).findAll()); } } return references; }