public static Type generateTypeFromTypeBinding(ITypeBinding typeBinding, AST ast, ASTRewrite rewriter) {
Type type = null;
if(typeBinding.isParameterizedType()) {
type = createParameterizedType(ast, typeBinding, rewriter);
}
<BUG>else if(typeBinding.isClass() || typeBinding.isInterface()) {
</BUG>
if(typeBinding.isMember()) {
ITypeBinding declaringClassTypeBinding = typeBinding.getDeclaringClass();
Type declaringClassType = generateTypeFromTypeBinding(declaringClassTypeBinding, ast, rewriter);

public static Type generateTypeFromTypeBinding(ITypeBinding typeBinding, AST ast, ASTRewrite rewriter) {
Type type = null;
if(typeBinding.isParameterizedType()) {
type = createParameterizedType(ast, typeBinding, rewriter);
}
else if(typeBinding.isClass() || typeBinding.isInterface() || typeBinding.isEnum()) {
if(typeBinding.isMember()) {
ITypeBinding declaringClassTypeBinding = typeBinding.getDeclaringClass();
Type declaringClassType = generateTypeFromTypeBinding(declaringClassTypeBinding, ast, rewriter);
