void (@NotNull ExpandMacroToPathMap result, @NotNull String macroName, @SystemIndependent @Nullable String path) { if (path != null) { doAddFileHierarchyReplacements(result, Strings.trimEnd(path, "/"), '$' + macroName + '$'); } }