code: public static boolean isHK2Managed(final Class<?> type, final boolean guiceFirstMode) {
          return guiceFirstMode
                  ? type.isAnnotationPresent(HK2Managed.class)
                  : !type.isAnnotationPresent(GuiceManaged.class);
      }
docs: When guice-first mode used (default) all jersey extensions are instantiated by guice and only if
  {@linkplain HK2Managed} annotation set on bean - it will be instantiated by HK2.
  <p>
  When HK2-first mode used
  ({@linkplain ru.vyarus.dropwizard.guice.module.installer.InstallersOptions#JerseyExtensionsManagedByGuice})
  all jersey extensions are instantiated by HK2 and only if {@linkplain GuiceManaged} annotation set on bean - it
  will be instantiated by guice.
  
  @param type           type to check
  @param guiceFirstMode true when guice used by default for jersey extensions management, false when
  HK2 used by default
  @return true if type should be managed by HK2, false when type should managed by guice.
  @see ru.vyarus.dropwizard.guice.module.installer.InstallersOptions#JerseyExtensionsManagedByGuice
  @see HK2Managed
  @see GuiceManaged