@NotNull
    @Override
    public Action visit(@NotNull TreePath path) {
      Object object = TreeUtil.getLastUserObject(path);
      if (object != null && anyAssignableFrom(object.getClass())) {
        myCollector.add(path);
      }
      return Action.CONTINUE;
    }
@NotNull
    @Override
    public Action visit(@NotNull TreePath path)