junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Preconditions.java
public static <T> T notNull(T value, String name) {
		if (value == null) {
			throw new NullPointerException(format("%s must not be null", name));
		}
		return value;
	}
public static <T> T notNull(T value, String name) {
		if (value == null) {
			throw new NullPointerException(format("%s must not be null", name));
		}
		return value;
	}
Check that a given value is not null.
It throws a {@link NullPointerException} exception if value is {@code null} or returned the
value.

@param value Value to check.
@param name Name of parameter, it will produce an error message such as "{name} must not be null"
@param <T> Type of value.
@return First parameter if it is not null.
@throws NullPointerException If {@code value} is {@code null}.