public static boolean declaredEquals(Class<?> clazz) {
        for (Method declaredMethod : clazz.getDeclaredMethods()) {
            if (EQUALS_METHOD.equals(declaredMethod.getName())
                    && Arrays.equals(declaredMethod.getParameterTypes(),
                            EQUALS_PARAMETERS)) {
                return true;
            }
        }
        return false;
    }