public static Object createInstanceNoArgs(Class<?> clazz) {
        assertReflectionAccessor();
        try {
            return accessor.newInstance(clazz);
        } catch (Exception e) {
            throw SneakyException.sneakyThrow(e);
        }
    }
public static Object createInstanceNoArgs ( Class < ? > clazz ) { assertReflectionAccessor ( ) ; try { return accessor . newInstance ( clazz ) ; } catch ( Exception e ) { throw SneakyException . sneakyThrow ( e ) ; } }
Creates an instance of this class through reflection. Class must have a no-args constructor.
Any exceptions thrown during the process will be re-thrown as unchecked.

@param clazz Class to instantiate.
@return An instance of the provided class.
@throws RuntimeException If an error occurred while instantiating an object of the class (for example, if the
class doesn't have a no-args constructor).