code: public Set<Method> getMethods(boolean privileged) {
        if (privileged) {
           return Collections.unmodifiableSet(Sets.union(methods, declaredMethods));
        } else {
           return Collections.unmodifiableSet(methods);
        }
     }
docs: Gets methods.
  
  @param privileged the privileged
  @return the methods