void () { ExtensionPoint<@NotNull Integer> extensionPoint = buildExtensionPoint(Integer.class); extensionPoint.registerExtension(123, disposable); assertThat(extensionPoint.getExtensionList()).hasSize(1); Disposer.dispose(disposable); disposable = null; assertThat(extensionPoint.getExtensionList()).isEmpty(); }