code: public static Map<Integer, List<AnnotationInstance>> createParameterAnnotationMap(final MethodInfo method) {
          final Map<Integer, List<AnnotationInstance>> result = new HashMap<>();
          for (AnnotationInstance ai : method.annotations()) {
              final AnnotationTarget at = ai.target();
              if (at.kind() == AnnotationTarget.Kind.METHOD_PARAMETER) {
                  final MethodParameterInfo mp = at.asMethodParameter();
                  final int pos = (int) mp.position();
                  List<AnnotationInstance> list = result.get(pos);
                  if (list == null) {
                      list = new ArrayList<>();
                      result.put(pos, list);
                  }
                  list.add(ai);
              }
          }
          return result;
      }
docs: Create a map for parameter annotations. The key id the index (zero based) of the parameter and the value is a list of all
  annotations.
  
  @param method
  Method to create a map for.
  
  @return Map with parameter index (key) and list of annotations (value).