private void keepSelectionState() {
    VirtualFile[] selectedItems = getSelectedRoots();
    //noinspection SSBasedInspection
    SwingUtilities.invokeLater(() -> setSelectedRoots(selectedItems));
  }
private void keepSelectionState()