action.setDescription("Filter selected edge");
action.setCommand(new FilterSelectedEntities(listWithObject, getGraphLoader(), getHierarchicEdgeGrouper()));
filterMenu.add(action);
action = new GraphEditPopupMenuAction("Keep selected edge", fGraphPanel);
action.setDescription("Keep selected edge and corresponding nodes");
action.setCommand(new KeepSelectedDependencies(listWithEdge, getGraphLoader(), getHierarchicEdgeGrouper()));
filterMenu.add(action);
pm.add(filterMenu);
return pm;
}