boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LightMethodBuilder that = (LightMethodBuilder)o; if (myConstructor != that.myConstructor) return false; if (!Objects.equals(myContainingClass, that.myContainingClass)) return false; if (!myMethodKind.equals(that.myMethodKind)) return false; if (!myName.equals(that.myName)) return false; if (getParametersCount() != that.getParametersCount()) return false; if (!getParameterTypes().equals(that.getParameterTypes())) return false; if (!Objects.equals(getReturnType(), that.getReturnType())) return false; return true; }