// Implementations for ConstantVisitor.
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
{
Clazz referencedClass = classConstant.referencedClass;
if (referencedClass == null ||
!implementingClass.extendsOrImplements(referencedClass))
{
constantVisitor.visitClassConstant(clazz, classConstant);
}