void () { final AdvancedOptionsDialog dialog = new AdvancedOptionsDialog(myProject, myInputType, getOutputType()); dialog.setOptions(myInputOptions, myOutputOptions); if (dialog.showAndGet()) { myInputOptions = dialog.getInputOptions(); myOutputOptions = dialog.getOutputOptions(); } }