if (previous != null && previous.getType().equals(TwigRegionContext.TWIG_CONTENT) &&
previous instanceof XMLStructuredDocumentRegion && region instanceof XMLStructuredDocumentRegion) {
textRegion = (XMLStructuredDocumentRegion) region;
this.offset = offset;
XMLStructuredDocumentRegion xmlRegion = (XMLStructuredDocumentRegion) previous;
if (xmlRegion.getText().contains("trans")) {
return true;
}
}
return false;