if (! (jdtMember instanceof IType)) {
throw new IllegalArgumentException("Cannot init JavaClass from " + jdtMember);
}
JavaClass jexClass = (JavaClass) jexMember;
IType jdtType = (IType) jdtMember;
ClassKind kind = ClassKind.CLASS_KIND;
if (jdtType.isInterface()) {
kind = ClassKind.INTERFACE_KIND;
} else if (jdtType.isEnum()) {
kind = ClassKind.ENUM_KIND;
}