boolean (@NotNull LogFileOptions options) { EditLogPatternDialog dialog = new EditLogPatternDialog(); dialog.init(options.getName(), options.getPathPattern(), options.isShowAll()); if (dialog.showAndGet()) { options.setName(dialog.getName()); options.setPathPattern(dialog.getLogPattern()); options.setShowAll(dialog.isShowAllFiles()); return true; } return false; }