LookupElementBuilder (MavenRepositoryArtifactInfo info, String presentableText) { LookupElementBuilder elementBuilder = LookupElementBuilder.create(info, getLookupString(info)) .withPresentableText(presentableText); elementBuilder.putUserData(BaseCompletionLookupArranger.FORCE_MIDDLE_MATCH, new Object()); if (info.getItems().length == 1) { return elementBuilder.withIcon(getIcon(info.getItems()[0].getType())); } return elementBuilder; }