public ClassEntity fetchClass(Class<?> clazz) {
        ClassEntity result = fetchClass(ReflectionUtils.getClassName(clazz), false);

        if (result == null)
            throw new CriticalException("Native class is not registered - " + clazz.getName());

        return result;
    }
Remove all method which does not destruct

@throws Throwable
jphp-runtime/src/php/runtime/env/Environment.java