static <T> CredentialsCase<T> create(@NotNull CredentialsType<T> type, @NotNull Consumer<? super T> consumer) {
    return new CredentialsCase<>() {
      @Override
      public CredentialsType<T> getType() {
        return type;
      }

      @Override
      public void process(T credentials) {
        consumer.accept(credentials);
      }
    };
  }
static <T> CredentialsCase<T> create(@NotNull CredentialsType<T> type, @NotNull Consumer<? super T> consumer)