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