PsiParser (Project project) { return new PsiParser() { @NotNull @Override public ASTNode parse(IElementType root, PsiBuilder builder) { final PsiBuilder.Marker rootMarker = builder.mark(); final PsiBuilder.Marker propertiesList = builder.mark(); while (!builder.eof()) { parseProvider(builder); } propertiesList.done(SPIElementTypes.PROVIDERS_LIST); rootMarker.done(root); return builder.getTreeBuilt(); } }; }