void (MigrationMapEntry entry) { entry.setOldName(myOldNameField.getText().trim()); entry.setNewName(myNewNameField.getText().trim()); if (myRbPackage.isSelected()){ entry.setType(MigrationMapEntry.PACKAGE); entry.setRecursive(true); } else{ entry.setType(MigrationMapEntry.CLASS); } }