public static boolean isScannerSide(Object extension) {
    return AnnotationUtils.getAnnotation(extension, ScannerSide.class) != null;
  }
@Test
  public void testIsScannerSide() {
    assertThat(ExtensionUtils.isDeprecatedScannerSide(ScannerService.class)).isTrue();

    assertThat(ExtensionUtils.isDeprecatedScannerSide(ServerService.class)).isFalse();
    assertThat(ExtensionUtils.isDeprecatedScannerSide(new ServerService())).isFalse();
    assertThat(ExtensionUtils.isDeprecatedScannerSide(new WebServerService())).isFalse();
    assertThat(ExtensionUtils.isDeprecatedScannerSide(new ComputeEngineService())).isFalse();
  }