void (@NotNull AnActionEvent e) { VirtualFile[] files = new VirtualFile[]{Util.showSpecifyJavadocUrlDialog(myTable)}; final MyTableModel tableModel = (MyTableModel)myTable.getModel(); boolean changes = false; for (final VirtualFile file : files) { if (file != null) { tableModel.addTableItem(new TableItem(file)); changes = true; } } if (changes) { saveData(); TableUtil.selectRows(myTable, new int[]{tableModel.getRowCount() - 1}); } }