public void checkCanInstance(Environment env, TraceInfo trace) {
        if (isAbstract) {
            env.error(trace, Messages.ERR_CANNOT_INSTANT_ABSTRACT_CLASS.fetch(name));
        } else if (type == Type.INTERFACE) {
            env.error(trace, Messages.ERR_CANNOT_INSTANT_INTERFACE.fetch(name));
        } else if (type == Type.TRAIT) {
            env.error(trace, Messages.ERR_CANNOT_INSTANT_TRAIT.fetch(name));
        }
    }
return empty list if success else list with not valid implemented methods in class

@param _interface
@return
jphp-runtime/src/php/runtime/reflection/ClassEntity.java