void (PsiParameter parameter) { PsiMethod method = (PsiMethod)parameter.getDeclarationScope(); var processor = JavaRefactoringFactory.getInstance(parameter.getProject()) .createChangeSignatureProcessor(method, false, null, method.getName(), method.getReturnType(), ParameterInfoImpl.fromMethodExceptParameter(method, parameter), null, null, null, null); processor.run(); }