public void apply(AbstractProjectViewPane viewPane) {
      if (viewPane == null) {
        return;
      }

      JTree tree = viewPane.myTree;
      List<TreeVisitor> visitors = AbstractProjectViewPane.createVisitors(elements);
      if (1 == visitors.size()) {
        TreeUtil.promiseSelect(tree, visitors.get(0));
      }
      else if (!visitors.isEmpty()) {
        TreeUtil.promiseSelect(tree, visitors.stream());
      }
    }
public void apply(AbstractProjectViewPane viewPane)