@Override
public void renderElement(LookupElementPresentation presentation) {
super.renderElement(presentation);
if (myElement instanceof ClDef) {
ClDef def = (ClDef) myElement;
presentation.setTailText(" " + def.getParameterString());
presentation.setTypeText(def.getContainingFile().getName());
} else if (myElement instanceof PsiClass) {
PsiClass clazz = (PsiClass) myElement;
String location = clazz.getPresentation().getLocationString();
JavaPsiClassReferenceElement.renderClassItem(presentation, this, clazz, false);
presentation.appendTailText(" " + location, true);