code: public static List<ValidationGroups> findAnnotations(final Method method) {
          final Class<?> declaringClass = method.getDeclaringClass();
          final List<ValidationGroups> annotations = filterAnnotations(declaringClass.getAnnotations());
          annotations.addAll(filterAnnotations(method.getAnnotations()));
          return annotations;
      }
docs: Search for {@link ValidationGroups} annotations on class and method.
  Checks direct annotations and annotations annotating method/class annotations (inside annotations).
  
  @param method method to analyze
  @return list of found annotations (class annotations first) or empty list