ElementPresentation () { ElementPresentationTemplate template = getChildDescription().getPresentationTemplate(); if (template != null) { return template.createPresentation(getProxy()); } return new ElementPresentation() { @Override public String getElementName() { return ElementPresentationManager.getElementName(getProxy()); } @Override public String getTypeName() { return ElementPresentationManager.getTypeNameForObject(getProxy()); } @Override public Icon getIcon() { return ElementPresentationManager.getIconOld(getProxy()); } }; }