public static Object[] convertTreePathToArray(@NotNull TreePath path, @NotNull Function<Object, Object> converter) {
    return convertTreePathToArray(path, converter, Object.class);
  }
public static Object[] convertTreePathToArray(@NotNull TreePath path, @NotNull Function<Object, Object> converter)