final List<Object> listWithObject = new ArrayList<Object>();
listWithObject.add(node);
GraphEditPopupMenuAction action = null;
action = new GraphEditPopupMenuAction("Selected node", fGraphPanel);
action.setDescription("Hide the selected node");
action.setCommand(new FilterSelectedEntities(listWithObject, getGraphLoader(), getHierarchicEdgeGrouper()));
filterMenu.add(action);
action = new GraphEditPopupMenuAction("Internal dependencies", fGraphPanel);
action.setDescription("Filter internal edges and lonely nodes of the selected folder node");
action.setCommand(new FilterInternalDependenciesOfNode(node, getGraphLoader(), getHierarchicEdgeGrouper()));