void (@NotNull Project project, @NotNull PsiFile file, @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { if (!isAvailable(project, file, startElement, endElement)) return; PsiMethod superMethod = (PsiMethod)startElement; PsiMethod method = methodPtr.getElement(); List<ParameterInfoImpl> infos = getParameterInfos(superMethod, method); if (infos == null) return; var processor = JavaRefactoringFactory.getInstance(project) .createChangeSignatureProcessor(method, false, null, method.getName(), method.getReturnType(), infos.toArray(new ParameterInfoImpl[]{}), null, null, null, null); processor.run(); }