code: private String getMethodName(Method method) {
          StatName statNameAnnotation = method.getAnnotation(StatName.class);
          return statNameAnnotation != null ? statNameAnnotation.value() : method.getName();
      }
docs: Returns name of the given method.
  
  @param method {@link Method}
  @return the method name or custom name provided via {@link StatName} annotation