Commenter commenter = LanguageCommenters.INSTANCE.forLanguage(language);
if (commenter == null) return null;
String linePrefix = commenter.getLineCommentPrefix();
if (linePrefix == null) return null;
int prefixLength = linePrefix.length();
<BUG>int startOffset = elements[0].getTextRange().getStartOffset();

int endOffset = elements[elements.length - 1].getTextRange().getEndOffset();
</BUG>
int delta = 0;

Commenter commenter = LanguageCommenters.INSTANCE.forLanguage(language);
if (commenter == null) return null;
String linePrefix = commenter.getLineCommentPrefix();
if (linePrefix == null) return null;
int prefixLength = linePrefix.length();
int startOffset = firstElement.getTextRange().getStartOffset();
int endOffset = lastElement.getTextRange().getEndOffset();
int delta = 0;
