LookupElementPresentation () { final LookupElementPresentation presentation = new LookupElementPresentation(); if (myHardcodedPresentation != null) { presentation.copyFrom(myHardcodedPresentation); } else { presentation.setItemText(myLookupString); } return presentation; }