private static void manageReplace(ModPsiUpdater updater,
                                    GrConditionalExpression condExp,
                                    String conditionExpText, String newExp) {
    int caretOffset = conditionExpText.length() + 2; // after operation sign

    GrExpression expressionFromText = GroovyPsiElementFactory.getInstance(condExp.getProject())
      .createExpressionFromText(newExp, condExp .getContext());

    expressionFromText = (GrExpression)condExp.replace(expressionFromText);

    updater.moveCaretTo(expressionFromText.getTextOffset() + caretOffset); // just past operation sign
  }
private static void manageReplace(ModPsiUpdater updater,
                                    GrConditionalExpression condExp,
                                    String conditionExpText, String newExp)