public static @NotNull JBIterable<Component> uiChildren(@Nullable Component component) {
    if (!(component instanceof Container container)) return JBIterable.empty();
    return JBIterable.of(container.getComponents());
  }
public static @NotNull JBIterable<Component> uiChildren(@Nullable Component component)