public void process(ClassPool classpool, ClassLoader classloader, CtClass ctClass) throws Exception {
if (IDEPATCH_CLASS.equals(ctClass.getName())) {
Collection<String> classes = ctClass.getRefClasses();
if (!classes.contains(IDESUPPORT_CLASS)) {
CtMethod m = ctClass.getMethod(IDEPATCH_METHODNAME, IDEPATCH_SIGNATURE);
m.insertBefore(IDEPATCH_CODE);
}
}
if (WORKERTHREAD_CLASS.equals(ctClass.getName())) {
CtMethod m = ctClass.getMethod(WORKERPATCH_METHODNAME, WORKERPATCH_SIGNATURE);
m.insertBefore(WORKERPATCH_CODE);