@Override
public PsiElement resolve() {
PsiFile containingFile = myElement.getContainingFile();
if (containingFile instanceof ErlangFile) {
ErlangMacrosDefinition macros = ((ErlangFile) containingFile).getMacros(myReferenceName);
if (macros != null) {
return macros;
}
return ContainerUtil.getFirstItem(ErlangPsiImplUtil.getErlangMacrosFromIncludes((ErlangFile) containingFile, false, myReferenceName));
}