fix StubBuilder javadoc (IDEA-CR-63239)

GitOrigin-RevId: aa430ad98b41fde37b664a97afafd96945832127
This commit is contained in:
Peter Gromov
2020-06-02 21:41:18 +03:00
committed by intellij-monorepo-bot
parent 78215bab95
commit fa4622d55e
@@ -10,11 +10,11 @@ public interface StubBuilder {
/**
* Return true if {@code node} can't contain stubs, false you can't be sure about that.
* Implementing this method allows to speed up some PSI operations (e.g. involving stub-AST switch)
* Implementing this method allows to speed up indexing and some PSI operations (e.g. involving stub-AST switch)
* by reducing the number of the AST nodes the platform walks to find all stubbed ones.<p></p>
*
* Typical implementations usually check {@code node.getElementType()}. They may also check {@code node}'s text.
* If {@node} is {@link com.intellij.psi.tree.ILazyParseableElementType lazy-parseable}, retrieving its children via AST
* If {@code node} is {@link com.intellij.psi.tree.ILazyParseableElementType lazy-parseable}, retrieving its children via AST
* would be slow and is not recommended, try to use text (maybe with a lexer) instead.
*
* @param parent the parent of {@code node}