boolean (Object obj) { if (obj == this) return true; if (obj == null || obj.getClass() != this.getClass()) return false; PatternTypeTestDescription that = (PatternTypeTestDescription)obj; if (this.myPsiClass != null && that.myPsiClass != null && !this.myPsiClass.hasTypeParameters()) { return Objects.equals(this.myPsiClass, that.myPsiClass); } return Objects.equals(this.type, that.type); }