This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
org.netbeans.modules.editor.mimelookup.CreateRegistrationProcessor seems to have copied & pasted a large block of code from LayerBuilder to check that an annotated element is assignable to a type which is not known statically. This should be moved back into LayerBuilder and take TypeMirror. (The existing code immediately converts a Class into a TypeMirror anyway.)