public boolean handleEnter(ContentElement element, EditorEvent event) {
ContentPoint contentPoint = event.getCaret();
if (!contentPoint.isInTextNode() && contentPoint.getContainer() != element) {
return true;
}
Point<ContentNode> point = contentPoint.asPoint();
ContentNode nodeBefore = point.isInTextNode()
? point.getContainer() : Point.nodeBefore(FullContentView.INSTANCE, point.asElementPoint());
Line line = Line.fromParagraph(element);
// If user hits enter at the an empty list item - we de-indent or stop the list