@Nullable
  private static ChangesBrowserNode<?> findParentOfType(@NotNull ChangesBrowserNode<?> node,
                                                        @NotNull Class<? extends ChangesBrowserNode<?>> clazz) {
    ChangesBrowserNode<?> parent = node.getParent();
    while (parent != null) {
      if (clazz.isInstance(parent)) {
        return parent;
      }
      parent = parent.getParent();
    }
    return null;
  }
@Nullable
  private static ChangesBrowserNode<?> findParentOfType(@NotNull ChangesBrowserNode<?> node,
                                                        @NotNull Class<? extends ChangesBrowserNode<?>> clazz)