void () { StringBuilder comment = new StringBuilder(); for (CommitPlaceholderProvider extension : CommitPlaceholderProvider.EXTENSION_POINT_NAME.getExtensionList()) { String[] placeholders = extension.getPlaceholders(myRepository); for (String placeholder : placeholders) { if (comment.length() > 0) { comment.append(", "); } comment.append("{").append(placeholder).append("}"); String description = extension.getPlaceholderDescription(placeholder); if (description != null) { comment.append(" (").append(description).append(")"); } } } myComment.setText(TaskApiBundle.message("label.html.available.placeholders.html", comment)); }