newMethod.getModifierList().setModifierProperty(myMethodVisibility, true);
newMethod.getModifierList().setModifierProperty(PsiModifier.STATIC, isStatic);
if (myTypeParameterList != null) {
newMethod.getTypeParameterList().replace(myTypeParameterList);
}
<BUG>PsiCodeBlock body = newMethod.getBody();
boolean isFinal = CodeStyleSettingsManager.getSettings(myProject).GENERATE_FINAL_PARAMETERS;</BUG>
PsiParameterList list = newMethod.getParameterList();
for (ParameterTablePanel.VariableData data : myVariableDatum) {
if (data.passAsParameter) {

newMethod.getModifierList().setModifierProperty(myMethodVisibility, true);
newMethod.getModifierList().setModifierProperty(PsiModifier.STATIC, isStatic);
if (myTypeParameterList != null) {
newMethod.getTypeParameterList().replace(myTypeParameterList);
}
PsiCodeBlock body = newMethod.getBody();
LOG.assertTrue(body != null);
boolean isFinal = CodeStyleSettingsManager.getSettings(myProject).GENERATE_FINAL_PARAMETERS;
PsiParameterList list = newMethod.getParameterList();
for (ParameterTablePanel.VariableData data : myVariableDatum) {
if (data.passAsParameter) {
