@SuppressWarnings("unchecked")
  private <T> T getAnnotation(Annotation[] annotations, Class<T> klass) {
    for (Annotation annotation : annotations) {
      if (klass.isAssignableFrom(annotation.getClass())) {
        return (T) annotation;
      }
    }
    return null;
  }
returns a short description and help string of the command if annotations is null or returns a
details description of the command with the syntax and parameter description
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/help/Helper.java