if (referringSymbol instanceof Symbol) {
myVariable.setReferringElement((Symbol) referringSymbol, processor.getMyLocalization(), processor.getMyLocalizationSymbol());
return referringSymbol;
}
GlobalDefinitionResolveProcessor globalProcessor = new GlobalDefinitionResolveProcessor(myVariable);
PsiTreeUtil.processElements(myVariable.getContainingFile(), globalProcessor);
final PsiElement globalDefinition = globalProcessor.getMyReferringSymbol();
if (globalDefinition instanceof Symbol) {
myVariable.setReferringElement((Symbol) globalDefinition, LocalizationConstruct.ConstructType.NULL, null);
return globalDefinition;
}
return null;