@Nullable
  public PyType map(@NotNull Function<@Nullable PyType, @Nullable PyType> mapper) {
    return union(ContainerUtil.map(getMembers(), t -> mapper.apply(t)));
  }
@Nullable
  public PyType map(@NotNull Function<@Nullable PyType, @Nullable PyType> mapper)