private void updatePathBarAndHistory(@Nullable Path path, boolean updatePathBar, boolean updateHistory) {
    if (updatePathBar) {
      myPath.setItem(path != null ? new PathWrapper(path) : null);
    }
    if (updateHistory) {
      myHistory.subList(++myHistoryIndex, myHistory.size()).clear();
      myHistory.add(path);
    }
  }
private void updatePathBarAndHistory(@Nullable Path path, boolean updatePathBar, boolean updateHistory)