boolean (Object obj) { if (obj instanceof GrTupleType) { List<PsiType> componentTypes = getComponentTypes(); List<PsiType> otherComponents = ((GrTupleType)obj).getComponentTypes(); return componentTypes.size() == otherComponents.size() && componentTypes.equals(otherComponents); } return super.equals(obj); }