public boolean isOwned(ClassEntity entity){
        return clazz.getId() == entity.getId();
    }
Use  isImplementableSignatureFor() method.
@param method
@param strong
@return
jphp-runtime/src/php/runtime/reflection/MethodEntity.java