AliasLookupItemFactory lookupItemFactory = new AliasLookupItemFactory(identifierPsiElement.getChars(), true);
lookupItemFactory.createLookupItem(identifierPsiElement, consumer);
}
}
} else if (identifierElementType.isVariable()) {
PsiLookupAdapter lookupAdapter = new VariableDefinitionLookupAdapter(null, objectType, null);
Set<BasePsiElement> aliasDefinitions = lookupAdapter.collectInParentScopeOf(element);
if (aliasDefinitions != null) {
for (BasePsiElement psiElement : aliasDefinitions) {
IdentifierPsiElement identifierPsiElement = (IdentifierPsiElement) psiElement;
VariableLookupItemFactory lookupItemFactory = new VariableLookupItemFactory(identifierPsiElement.getChars(), true);
lookupItemFactory.createLookupItem(identifierPsiElement, consumer);