@Override
  protected void apply(@NotNull GrSafeCastExpression expression) {
    GrExpression lhsParenthesized = addParenthesesIfNeeded(expression.getOperand());
    GrTypeElement typeElement = Objects.requireNonNull(expression.getCastTypeElement());
    replaceExpression(expression, format("%s.asType(%s)", lhsParenthesized.getText(), typeElement.getText()));
  }
@Override
  protected void apply(@NotNull GrSafeCastExpression expression)