void (PsiElement element, StringBuilder buffer) { if (element instanceof GrLiteral literal) { buffer.append(literal.getValue()); } else if (element instanceof GrBinaryExpression binOp) { getValue(binOp.getLeftOperand(), buffer); getValue(binOp.getRightOperand(), buffer); } }