void (@Nullable String mapName) { if (mapName == null) return; final MigrationMap copiedMap = myMigrationMapSet.findMigrationMap(mapName); if (copiedMap == null) return; myUi.getNameField().setText(copiedMap.getName()); myUi.getDescriptionTextArea().setText(copiedMap.getDescription()); while (myTable.getRowCount() > 0) removeRow(0); for (int i = 0; i < copiedMap.getEntryCount(); i++) { addEntry(copiedMap.getEntryAt(i)); } }