ItemPresentation () { Content content = myNode.getContent(); if (content != null) { return new PresentationData(content.getDisplayName(), null, content.getIcon(), null); } else { RunConfiguration configuration = myNode.getConfigurationSettings().getConfiguration(); return new PresentationData(configuration.getName(), null, configuration.getIcon(), null); } }