boolean (@Nullable PsiBuilder.Marker parsedMarker, PsiBuilder builder, final Predicate<? super IElementType> cond) { if (parsedMarker == null) { return false; } final LighterASTNode lastDone = builder.getLatestDoneMarker(); if (lastDone == null) { return false; } return cond.test(lastDone.getTokenType()); }