public <T> void addExplicitExtension(final ClassExtension<T> instance, final Class clazz, final T object) { instance.addExplicitExtension(clazz, object); Disposer.register(getParentDisposable(), new Disposable() { @Override public void dispose() { instance.removeExplicitExtension(clazz, object); } }); }
public <T> void addExplicitExtension(@NotNull final ClassExtension<T> instance, @NotNull final Class aClass, @NotNull final T object) { doAddExplicitExtension(instance, aClass, object); }
public <T> void addExplicitExtension(@Nonnull final ClassExtension<T> instance, @Nonnull final Class aClass, @Nonnull final T object) { doAddExplicitExtension(instance, aClass, object); }