public static < T > T assertNotNull ( T value , String message ) { if ( value == null ) throw new IllegalStateException ( message ) ; return value ; }
Throws an IllegalStateException when the given value is null .