private static String getAnnotationText(final List<ExtendedProblemDescriptor> problemDescriptors) {
final StringBuilder buffer = new StringBuilder();
for (//noinspection LocalCanBeFinal
int i = 0, problemDescriptorsSize = problemDescriptors.size(); i < problemDescriptorsSize; i++) {
final ExtendedProblemDescriptor problemDescriptor = problemDescriptors.get(i);
buffer.append(ResourcesLoader.getString("findbugs.name")).append(": ").append(StringUtil.html2text(BugInstanceUtil.getBugPatternShortDescription(problemDescriptor.getBugInstance()))).append('\n');
buffer.append(StringUtil.html2text(BugInstanceUtil.getDetailText(problemDescriptor.getBugInstance())));
if (i < problemDescriptors.size() - 1) {
//noinspection HardcodedLineSeparator
buffer.append("\n\n");
}
}