JComponent () { final ParameterTablePanel panel = new ParameterTablePanel(myProject, myInputVariables, myElementsToExtract) { @Override protected void updateSignature() { updateVarargsEnabled(); ExtractMethodObjectDialog.this.updateSignature(); } @Override protected void doEnterAction() { clickDefaultButton(); } @Override protected void doCancelAction() { ExtractMethodObjectDialog.this.doCancelAction(); } @Override protected boolean isUsedAfter(PsiVariable variable) { return ExtractMethodObjectDialog.this.isUsedAfter(variable); } }; panel.setMinimumSize(new Dimension(100, 75)); return panel; }