public static < T > T checkNotNull ( final T reference , final String errorMessage ) { return precondition ( reference , Predicates . < T > notNull ( ) , IllegalArgumentException . class , errorMessage ) ; }
Check that a reference is not null throwing a IllegalArgumentException if it is .