@NotNull
    private static NamedType nameOrAny(@Nullable PyType type) {
      return type == null ? ANY : new NamedType(type.getName());
    }
@NotNull
    private static NamedType nameOrAny(@Nullable PyType type)