code: protected boolean shouldAddToIndexMap(Doc element) {
          if (javafx) {
              if (element.tags("treatAsPrivate").length > 0) {
                  return false;
              }
          }
  
          if (element instanceof PackageDoc)
              // Do not add to index map if -nodeprecated option is set and the
              // package is marked as deprecated.
              return !(noDeprecated && configuration.utils.isDeprecated(element));
          else
              // Do not add to index map if -nodeprecated option is set and if the
              // Doc is marked as deprecated or the containing package is marked as
              // deprecated.
              return !(noDeprecated &&
                      (configuration.utils.isDeprecated(element) ||
                      configuration.utils.isDeprecated(((ProgramElementDoc)element).containingPackage())));
      }
docs: Should this doc element be added to the index map?