void () { super.init(); JavaRefactoringSettings settings = JavaRefactoringSettings.getInstance(); initReplaceFieldsWithGetters(settings); myDeclareFinalCheckBox.setSelected(hasFinalModifier()); myDelegateViaOverloadingMethodCheckBox.setVisible(myInfo.getToSearchFor() != null); setTitle(RefactoringBundle.message("introduce.parameter.title")); myTable.init(myInfo); final GrParameter[] parameters = myInfo.getToReplaceIn().getParameters(); for (Object2IntMap.Entry<JCheckBox> entry : toRemoveCBs.object2IntEntrySet()) { entry.getKey().setSelected(true); final GrParameter param = parameters[entry.getIntValue()]; final ParameterInfo pinfo = findParamByOldName(param.getName()); if (pinfo != null) { pinfo.passAsParameter = false; } } updateSignature(); if (myCanIntroduceSimpleParameter) { mySignaturePanel.setVisible(false); //action to hide signature panel if we have variants to introduce simple parameter myTypeComboBox.addItemListener(new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { mySignaturePanel.setVisible(myTypeComboBox.isClosureSelected()); pack(); } }); } final PsiType closureReturnType = inferClosureReturnType(); if (PsiTypes.voidType().equals(closureReturnType)) { myForceReturnCheckBox.setEnabled(false); myForceReturnCheckBox.setSelected(false); } else { myForceReturnCheckBox.setSelected(isForceReturn()); } if (myInfo.getToReplaceIn() instanceof GrClosableBlock) { myDelegateViaOverloadingMethodCheckBox.setEnabled(false); myDelegateViaOverloadingMethodCheckBox.setToolTipText(GroovyBundle.message("introduce.parameter.delegating.unavailable.tooltip")); } pack(); }