void () { myParametersPanel = new SimpleParameterTablePanel(myValidator::isValidName) { @Override protected void doCancelAction() { AbstractExtractMethodDialog.this.doCancelAction(); } @Override protected void doEnterAction() { doOKAction(); } @Override protected void updateSignature() { updateOutputVariables(); AbstractExtractMethodDialog.this.updateSignature(); } }; mySignaturePreviewTextArea = new MethodSignatureComponent("", myProject, myFileType); }