This method is quite heuristic, looking for @type annotations that start with
"function". Other methods like containsDeclaration() and containsTypeDefinition are generally
preferred.
Some "IDE" clients will need some of these options but not
others. Consider calling setChecksOnly, setAllowRecompilation, etc,
explicitly, instead of calling this method which does a variety of
different things.