private VirtualFile @NotNull [] getSelectedFiles() {
    List<VirtualFile> selection = list == null ? Collections.emptyList() : list.getSelectedValuesList();
    return selection.toArray(VirtualFile.EMPTY_ARRAY);
  }
private VirtualFile @NotNull [] getSelectedFiles()