ItemPresentation (Object node) { // Ensure that value != myTreeModel.getRoot() && !(value instanceof LoadingNode) if (!(node instanceof ServiceViewItem)) return null; ServiceViewOptions viewOptions = DataManager.getInstance().getDataContext(myComponent).getData(ServiceViewActionUtils.OPTIONS_KEY); assert myItemState != null; return ((ServiceViewItem)node).getItemPresentation(viewOptions, myItemState); }