public boolean isConsumer(ImageConsumer ic) {
synchronized public boolean isConsumer(ImageConsumer ic) {
        public ImageProducer getSource() {            return new ImageProducer() {                HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>();                public void addConsumer(ImageConsumer ic) {                    consumers.add(ic);                }                public boolean isConsumer(ImageConsumer ic) {                    return consumers.contains(ic);                }                public void removeConsumer(ImageConsumer ic) {                    consumers.remove(ic);                }                public void startProduction(ImageConsumer ic) {                    consumers.add(ic);                    for (ImageConsumer c : consumers) {                        c.imageComplete(ImageConsumer.IMAGEERROR);                    }                }                public void requestTopDownLeftRightResend(ImageConsumer ic) {                    startProduction(ic);                }            };        }