Object (Object aNode) { Object object = ((DefaultMutableTreeNode) aNode).getUserObject(); if (object instanceof FilteringTreeStructure.FilteringNode) { return ((FilteringTreeStructure.FilteringNode) object).getDelegate(); } return object; }