class ReflectionExt {

    public static boolean isObjectMethod(Method method) {
        for (Pair<String, Class<?>[]> objectMethod : OBJECT_METHODS) {
            Class<?>[] objectMethodArgs = objectMethod.getRight();
            if (method.getName().equals(objectMethod.getLeft()) && method.getParameterCount() == objectMethodArgs.length) {
                boolean allMatch = true;
                for (int i = 0; i < method.getParameterCount() && allMatch; i++) {
                    allMatch = method.getParameterTypes()[i] == objectMethodArgs[i];
                }
                if (allMatch) {
                    return true;
                }
            }
        }
        return false;
    }

    private  ReflectionExt();

}