public static @Nullable <T> T getLastUserObject(@NotNull Class<T> type, @Nullable TreePath path) {
    return path == null ? null : getUserObject(type, path.getLastPathComponent());
  }
public static @Nullable <T> T getLastUserObject(@NotNull Class<T> type, @Nullable TreePath path)