@ NotNull public static < T > T checkNotNull ( T reference ) { if ( reference == null ) { throw new NullPointerException ( ) ; } return reference ; }
Checks if the object is null . Returns the object if it is not null else throws a NullPointerException .