Use Objects.requireNonNull() instead of throwing a NullPointerException yourself. 3