ExpandMacroToPathMap () { final ExpandMacroToPathMap macros = new ExpandMacroToPathMap(); final String projectDir = FileUtilRt.toSystemIndependentName(myProjectBaseDir.toAbsolutePath().toString()); macros.addMacroExpand(PathMacroUtil.PROJECT_DIR_MACRO_NAME, projectDir); PathMacrosImpl.getInstanceEx().addMacroExpands(macros); return macros; }