protected LightweightTypeReference internalFindTopLevelType(Class<?> rawType) {
		try {
			ResourceSet resourceSet = getOwner().getContextResourceSet();
			Resource typeResource = resourceSet.getResource(URIHelperConstants.OBJECTS_URI.appendSegment(rawType.getName()), true);
			List<EObject> resourceContents = typeResource.getContents();
			if (resourceContents.isEmpty())
				return null;
			JvmType type = (JvmType) resourceContents.get(0);
			return getOwner().newParameterizedTypeReference(type);
		} catch(WrappedException e) {
			/* no java project / class path context available, e.g. opened from history view */
			return null;
		}
	}
protected LightweightTypeReference internalFindTopLevelType ( Class < ? > rawType ) { try { ResourceSet resourceSet = getOwner ( ) . getContextResourceSet ( ) ; Resource typeResource = resourceSet . getResource ( URIHelperConstants . OBJECTS_URI . appendSegment ( rawType . getName ( ) ) , true ) ; List < EObject > resourceContents = typeResource . getContents ( ) ; if ( resourceContents . isEmpty ( ) ) return null ; JvmType type = ( JvmType ) resourceContents . get ( 0 ) ; return getOwner ( ) . newParameterizedTypeReference ( type ) ; } catch ( WrappedException e ) { return null ; } }
/* @Nullable