}
if (parent == null || parent.getLastChild() instanceof PsiErrorElement) return false;
PsiElement exprSibling = stringElement.getNextSibling();
boolean rightFromDollar = exprSibling instanceof GrExpression && exprSibling.getTextRange().getStartOffset() == caretOffset;
if (rightFromDollar) {
<BUG>editor.getCaretModel().moveToOffset(caretOffset - 1);
</BUG>
}
insertLineFeedInString(editor, dataContext, originalHandler, isInsertIndent);
if (rightFromDollar) {

}
else {
while (parent != null && !(parent instanceof GrLiteral)) {
parent = parent.getParent();
}
