@Deprecated
    public boolean equalsBySignature(MethodEntity method, boolean strong){
        if (strong)
            return getSignature().equals(method.getSignature());
        else {
            int cnt1 = parameters != null ? parameters.length : 0;
            int cnt2 = method.parameters != null ? method.parameters.length : 0;

            return cnt1 == cnt2;
        }
    }
Use isImplementableSignatureFor() method.
@param method
@param strong
@return
jphp-runtime/src/php/runtime/reflection/MethodEntity.java