public DocumentTopComponent(D document) { if (document == null) { throw new NullPointerException("document"); } this.document = document; this.dynamicContent = new InstanceContent(); associateLookup(new ProxyLookup(Lookups.fixed(document), new AbstractLookup(dynamicContent))); }