@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!super.equals(obj)) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        Field other = (Field) obj;
        if (declaringClass == null) {
            if (other.declaringClass != null) {
                return false;
            }
        } else if (!declaringClass.equals(other.declaringClass)) {
            return false;
        }
        if (directOwnerType == null) {
            if (other.directOwnerType != null) {
                return false;
            }
        } else if (!directOwnerType.equals(other.directOwnerType)) {
            return false;
        }
        return true;
    }