@@ -0,0 +1,623 @@
+package com.github.qrokodial.sparkle.utilities.casting;%0A%0Apublic class NullChecker %7B%0A    /**%0A     * Throws an exception if the object is null.%0A     *%0A     * @param object the object to check if null%0A     * @param exception the exception to throw if the object is null%0A     * @param %3CT%3E%0A     * @param %3CE%3E%0A     * @return the object, assuming it wasn't null%0A     * @throws E the exception originally passed to this function%0A     */%0A    public static %3CT, E extends Exception%3E T notNullOrThrow(T object, E exception) throws E %7B%0A        if (object == null) %7B%0A            throw exception;%0A        %7D%0A%0A        return object;%0A    %7D%0A%7D%0A

Introduce NullChecker