void () { PsiMethod createdDelegate = IntroduceParameterProcessor.createDelegate(myOriginalMethod, myExprText, myPanel.getParametersToRemove()); myCreatedDelegate = WriteCommandAction.writeCommandAction(myProject) .compute(() -> (PsiMethod) myMethod.getParent().addBefore(createdDelegate, myMethod)); }