void (@NotNull ActionContext context, @NotNull PsiMethod method, @NotNull ModPsiUpdater updater) { final PsiMethod emptyMethod = JavaPsiFacade.getElementFactory(context.project()).createMethodFromText("void foo(){}", method); method.getParameterList().replace(emptyMethod.getParameterList()); }