void (@NotNull T configuration) { configuration.removeAllLogFiles(); configuration.removeAllPredefinedLogFiles(); if (!isSelected()) return; for (int i = 0; i < myModel.getRowCount(); i++) { LogFileOptions options = myModel.getItem(i); if (Objects.equals(options.getPathPattern(), "")) { continue; } final Boolean checked = (Boolean)myModel.getValueAt(i, 2); final Boolean skipped = (Boolean)myModel.getValueAt(i, 3); final PredefinedLogFile predefined = myLog2Predefined.get(options); if (predefined != null) { PredefinedLogFile file = new PredefinedLogFile(); file.setId(predefined.getId()); file.setEnabled(options.isEnabled()); configuration.addPredefinedLogFile(file); } else { configuration .addLogFile(options.getPathPattern(), options.getName(), checked.booleanValue(), skipped.booleanValue(), options.isShowAll()); } } for (PredefinedLogFile logFile : myUnresolvedPredefined) { configuration.addPredefinedLogFile(logFile); } }