void (PsiBuilder builder, ErrorState state, boolean advance) { Frame frame = state.currentFrame; if (frame == null) { LOG.error("unbalanced enter/exit section call: got null"); return; } int position = builder.rawTokenIndex(); if (frame.errorReportedAt < position && frame.lastVariantAt > -1 && frame.lastVariantAt <= position) { reportError(builder, state, frame, false, true, advance); } }