code: @SuppressWarnings("unchecked")
  	private ApiAdapter<A> nullSafeApiAdapter(ApiAdapter<A> apiAdapter) {
  		if (apiAdapter != null) {
  			return apiAdapter;
  		}
  		return (ApiAdapter<A>) NullApiAdapter.INSTANCE;
  	}
docs: internal helpers