Action () { return new DialogWrapperAction(PerformanceTestingBundle.message("execute.script.button")) { @Override protected void doAction(ActionEvent e) { //noinspection AssignmentToStaticFieldFromInstanceMethod lastUsedText = scriptText.getText(); doOKAction(); myScriptRunner.doRunScript(ExecuteScriptDialog.this.project, ExecuteScriptDialog.this.scriptText.getText(), null); } }; }