String (PsiPolyadicExpression polyadicExpression) { final StringBuilder out = new StringBuilder(); for(PsiElement element = polyadicExpression.getFirstChild(); element != null; element = element.getNextSibling()) { if (element instanceof PsiExpression expression) { final Object value = ExpressionUtils.computeConstantExpression(expression); out.append((value == null) ? "?" : value.toString()); } else if (element instanceof PsiWhiteSpace && element.getText().contains("\n") && (out.isEmpty() || out.charAt(out.length() - 1) != '\n')) { out.append('\n'); } } return out.toString(); }