static <T>T checkNotNull(T instance,String name){
  if (instance == null) {
    throw new NullPointerException(name + " must not be null");
  }
  return instance;
}

static < T > T checkNotNull ( T instance , String name ) { if ( instance == null ) { throw new NullPointerException ( name + " must not be null" ) ; } return instance ; }
returns instance unless it ' s null .
