ExpandMacroToPathMap () { ExpandMacroToPathMap result = super.getExpandMacroMap(); addFileHierarchyReplacements(result, PathMacroUtil.MODULE_DIR_MACRO_NAME, PathMacroUtil.getModuleDir(myModuleDirPointer.get())); String projectFile = myProjectFilePathPointer.get(); if (projectFile != null) { for (Map.Entry<String, String> entry : ProjectWidePathMacroContributor.getAllMacros(projectFile).entrySet()) { result.addMacroExpand(entry.getKey(), entry.getValue()); } } return result; }