return pm;
}
private List<JMenuItem> buildMenu(Receiver<T> callback) {
ProjectTreeFragmentCreator c = new ProjectTreeFragmentCreator(project);
RootFolder folder = project.getRootFolder(type);
KongaTreeNode root = new RootFolderNode(folder);
c.createFragment(root, type);
List<JMenuItem> items = Lists.newArrayList();
if (root.getChildCount() > 0) {
addMenuItems(items, root, new Listener(callback));