docs: @SuppressWarnings("javadoc")
    private Description checkDeprecatedAnnotation(Tree tree, VisitorState state) {
      Symbol symbol = ASTHelpers.getSymbol(tree);
  
      // (1)
      // javac sets the DEPRECATED bit in flags if the Javadoc contains @deprecated
      if ((symbol.flags() & DEPRECATED) == 0) {
        return Description.NO_MATCH;
      }
  
      // (2)
      if (symbol.attribute(state.getSymtab().deprecatedType.tsym) != null) {
        return Description.NO_MATCH;
      }
  
      return describeMatch(tree, SuggestedFix.prefixWith(tree, "@Deprecated\n"));
    }