String (@Nullable MacroPathConverter converter, @NotNull Macro macro, @NotNull String expandedValue) { if (converter == null) { return expandedValue; } if (macro instanceof PathMacro) { return converter.convertPath(expandedValue); } if (macro instanceof PathListMacro) { return converter.convertPathList(expandedValue); } return expandedValue; }