code: public SelectionType getSelection(final Method method) {
          final Annotation[] annotations = method.getAnnotations();
          return getSelection(annotations);
      }
docs: Gets the selection.
  
  @param method
  the method
  @return the selection