protected void initTraitEnvironment(Environment env, ClassEntity originClass, Set<ClassEntity> used) throws Throwable {
        if (nativeInitEnvironment != null) {
            try {
                nativeInitEnvironment.invoke(null, env, originClass.getName());
            } catch (InvocationTargetException e) {
                env.__throwException(e);
            }
        }
        for (ClassEntity trait : traits.values()) {
            if (used.add(trait)) {
                trait.initTraitEnvironment(env, originClass, used);
            }
        }
    }
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