Frame (PsiBuilder builder, ErrorState state, int level_, int modifiers_, IElementType elementType_, String name_) { parentFrame = state.currentFrame; elementType = elementType_; offset = builder.getCurrentOffset(); position = builder.rawTokenIndex(); level = level_; modifiers = modifiers_; name = name_; variantCount = state.variants.size(); errorReportedAt = -1; lastVariantAt = -1; leftMarker = null; return this; }