public static String[] convertTreePathToStrings(@NotNull TreePath path) {
    return convertTreePathToArray(path, Object::toString, String.class);
  }
public static String[] convertTreePathToStrings(@NotNull TreePath path)