boolean (PsiBuilder builder, IElementType tokenType) { if (!getLanguageLevel(builder).isAtLeast(LanguageLevel.JDK_17) || tokenType != JavaTokenType.IDENTIFIER || !"non".equals(builder.getTokenText()) || builder.lookAhead(1) != JavaTokenType.MINUS || builder.lookAhead(2) != JavaTokenType.IDENTIFIER) { return false; } PsiBuilder.Marker maybeNonSealed = builder.mark(); PsiBuilderUtil.advance(builder, 2); boolean isNonSealed = PsiKeyword.SEALED.equals(builder.getTokenText()); maybeNonSealed.rollbackTo(); return isNonSealed; }