boolean (Object obj) { if (this == obj) return true; if (obj instanceof GrClassReferenceType) { if (myReferenceElement.equals(((GrClassReferenceType)obj).myReferenceElement)) { return true; } } return super.equals(obj); }