@Override
    public boolean checkName(String name) {
      if (name.isEmpty()) return false;
      return PathMacrosCollector.MACRO_PATTERN.matcher("$" + name + "$").matches();
    }
@Override
    public boolean checkName(String name)