void (@NotNull String messageText) { ProductionMarker lastMarker = myProduction.getStartMarkerAt(myProduction.size() - 1); if (lastMarker instanceof ErrorItem && lastMarker.myLexemeIndex == myCurrentLexeme) { return; } ErrorItem marker = myPool.allocateErrorItem(); marker.setMessage(messageText); marker.myLexemeIndex = myCurrentLexeme; myProduction.addMarker(marker); }