String (@NotNull FileViewProvider provider) { StringBuilder sb = new StringBuilder(); int count = 0; List<ASTNode> nodes = myContext.get().myReformatElements.get(provider); for (ASTNode node : nodes) { if (count >= 5) { sb.append(" and ").append(nodes.size() - count).append(" more."); break; } if (!sb.isEmpty()) sb.append(", "); sb.append(node.getElementType()).append(node.getTextRange()); count ++; } return sb.toString(); }