boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; LookupElementBuilder that = (LookupElementBuilder)o; final InsertHandler<LookupElement> insertHandler = that.myInsertHandler; if (myInsertHandler != null && insertHandler != null ? !myInsertHandler.getClass().equals(insertHandler.getClass()) : myInsertHandler != insertHandler) return false; if (!myLookupString.equals(that.myLookupString)) return false; if (!myObject.equals(that.myObject)) return false; final LookupElementRenderer<LookupElement> renderer = that.myRenderer; if (myRenderer != null && renderer != null ? !myRenderer.getClass().equals(renderer.getClass()) : myRenderer != renderer) return false; return true; }