code: public boolean containsDeclarationExcludingTypelessConst() {
      return (hasType()
          || hasReturnType()
          || hasEnumParameterType()
          || hasTypedefType()
          || hasThisType()
          || getParameterCount() > 0
          || getImplementedInterfaceCount() > 0
          || hasBaseType()
          || visibility != Visibility.INHERITED
          || getFlag(
              MASK_CONSTRUCTOR
                  | MASK_DEFINE
                  | MASK_OVERRIDE
                  | MASK_EXPORT
                  | MASK_EXPOSE
                  | MASK_DEPRECATED
                  | MASK_INTERFACE
                  | MASK_IMPLICITCAST
                  | MASK_NOSIDEEFFECTS
                  | MASK_RECORD));
    }
docs: Returns whether there is a declaration present on this {@link JSDocInfo}.
  
  <p>Does not consider `@const` (without a following type) to indicate a declaration. Whether you
  want this method, or the`containsDeclaration` that includes const, depends on whether you want
  to consider {@code /** @const * / a.b.c = 0} a declaration or not.