Marker () { Marker originalPositionMarker = null; // In the case of the topmost node all should be inserted if (myLexPosition != 0) { originalPositionMarker = super.mark(); synchronizePositions(true); } final Marker mark = super.mark(); if (myLexPosition == 0) { if (myDelegate.getTokenType() == TemplateMasqueradingLexer.MINUS_TYPE) { myDelegate.advanceLexer(); } } return new MyMarker(mark, originalPositionMarker, myLexPosition); }