void () { TableUtil.stopEditing(myTable); myTypeParameterInfos.add(new New("", null, null)); JavaCodeFragmentFactory codeFragmentFactory = JavaCodeFragmentFactory.getInstance(myProject); PsiElement context = myClass.getLBrace() != null ? myClass.getLBrace() : myClass; myBoundValueTypeCodeFragments.add(CommonJavaRefactoringUtil.createTableCodeFragment(null, context, codeFragmentFactory, true)); myDefaultValueTypeCodeFragments.add(CommonJavaRefactoringUtil.createTableCodeFragment(null, context, codeFragmentFactory, false)); final int row = myDefaultValueTypeCodeFragments.size() - 1; fireTableRowsInserted(row, row); }