void (AnActionButton button) { myCustomDictionariesTableView.stopEditing(); doChooseFiles(project, files -> files.stream() .map(VirtualFile::getPath) .map(PathUtil::toSystemDependentName) .filter(path -> !myCustomDictionariesTableView.getItems().contains(path)) .forEach(path -> myCustomDictionariesTableView.getListTableModel().addRow(path))); }