&& (leftNonWhitespaceChar < rightNonWhitespaceChar);
}
// if line is empty then the indexes were switched
if (leftNonWhitespaceChar > rightNonWhitespaceChar)
return new SimpleStructuredRegion(lineInfo.getOffset(), 0);
// if there are no changes - return the original line information, else
// build a fixed region
return leftNonWhitespaceChar == 0
&& rightNonWhitespaceChar == lineText.length() - 1 ? lineInfo
: new SimpleStructuredRegion(lineInfo.getOffset()
+ leftNonWhitespaceChar, rightNonWhitespaceChar
- leftNonWhitespaceChar + 1);
}