code: public JvmType findDeclaredType(String typeName, Notifier context) {
  		if (typeName == null)
  			throw new NullPointerException("typeName");
  		if (context == null)
  			throw new NullPointerException("context");
  		ResourceSet resourceSet = EcoreUtil2.getResourceSet(context);
  		if (resourceSet == null)
  			return null;
  		// make sure a type provider is configured in the resource set. 
  		IJvmTypeProvider typeProvider = typeProviderFactory.findOrCreateTypeProvider(resourceSet);
  		try {
  			final JvmType result = typeProvider.findTypeByName(typeName);
  			return result;
  		} catch (RuntimeException e) {
  			operationCanceledManager.propagateAsErrorIfCancelException(e);
  			log.info("Couldn't find JvmType for name '" + typeName + "' in context " + context, e);
  			return null;
  		}
  	}
docs: looks up a JVMType corresponding to the given {@link Class}. This method ignores any Jvm types created in non-
  {@link TypeResource} in the given context's resourceSet, but goes straight to the Java-layer, using a
  {@link IJvmTypeProvider}.
  
  @return the JvmType with the same qualified name as the given {@link Class} object, or null if no such JvmType
  could be found using the context's resourceSet.