void (Document doc) { super.setDocument(doc); doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE); if (doc instanceof StyledDocument) { doc.putProperty("imageCache", new DocumentationImageProvider(this, myImageResolver)); } }