code: private Scope getMethodScope(boolean isDestroy, Method method) {
          Scope methodScope;
          if ( isDestroy ) {
              Destroy annotation = method.getAnnotation(Destroy.class);
              methodScope = annotation != null ? annotation.scope() : null;
          } else {
              Initialize annotation = method.getAnnotation(Initialize.class);
              methodScope = annotation != null ? annotation.scope() : null;
          }
          return methodScope;
      }
docs: return the scope of a lifecycle method, or null if the method is not a lifecycle method