class MimicProcessor extends ClassTransformer {

    @Override
    protected boolean shouldTransform(CtClass candidateClass) throws Exception {
        // no support for non-static inner classes in javassist.
        if (candidateClass.getDeclaringClass() != null
                && (candidateClass.getModifiers() & Modifier.STATIC) == 0) {
            return false;
        }
        return candidateClass.hasAnnotation(Mimic.class);
    }

    public  MimicProcessor();

}