public PsiExpression replaceWrappedReferences(PsiElement @NotNull [] elements, PsiExpression expression) {
    if (!myFoldingAvailable) return expression;

    boolean update = elements[0] == expression;
    myFolding.foldParameterUsagesInBody(myInputVariables, elements, myScope);
    return update ? (PsiExpression)elements[0] : expression;
  }
public PsiExpression replaceWrappedReferences(PsiElement @NotNull [] elements, PsiExpression expression)