String (@NotNull PsiExpressionList list, boolean shortNames) { StringBuilder builder = new StringBuilder(); builder.append("("); PsiExpression[] args = list.getExpressions(); for (int i = 0; i < args.length; i++) { if (i > 0) builder.append(", "); PsiType argType = args[i].getType(); builder.append(argType != null ? (shortNames ? argType.getPresentableText() : JavaHighlightUtil.formatType(argType)) : "?"); } builder.append(")"); return builder.toString(); }