void (@NotNull PsiClass outerClass, @NotNull PsiElementFactory elementFactory, @NotNull PsiMethodCallExpression callExpression) { AccessibleLocalVariable variable = myVariables.get(0); PsiDeclarationStatement lastDeclaration = variable.toVariableDeclaration(elementFactory); myDeclarationStatement.replace(lastDeclaration); for (int i = 1; i < myVariables.size(); i++) { variable = myVariables.get(i); PsiDeclarationStatement declaration = variable.toVariableDeclaration(elementFactory); lastDeclaration.getParent().addAfter(declaration, lastDeclaration); lastDeclaration = declaration; } }