static IMeta initIMeta(O o) { if (o == null) null; if (o cast IMeta) ret o; if (o cast JComponent) ret initMetaOfJComponent(o); // This is not really used. Try to use BufferedImageWithMeta instead if (o cast BufferedImage) ret optCast IMeta(o.getProperty("meta")); null; }