IType paramType= project.findType(paramTypeName.toString()); IType varType= project.findType(varTypeName.toString());
IType paramType= project.findType(getFQN(typePackage, typeName)); IType varType= project.findType(variable.getFQN());
	private boolean isAssignable(Variable variable, String typePackage, String typeName) throws JavaModelException {				// check for an exact match (fast)		StringBuffer paramTypeName= new StringBuffer();		if (typePackage.length() != 0) {			paramTypeName.append(typePackage);			paramTypeName.append('.');		}		paramTypeName.append(typeName);		StringBuffer varTypeName= new StringBuffer();		if (variable.typePackage.length() != 0) {			varTypeName.append(variable.typePackage);			varTypeName.append('.');		}		varTypeName.append(variable.typeName);				IJavaProject project= fCompilationUnit.getJavaProject();		IType paramType= project.findType(paramTypeName.toString());		IType varType= project.findType(varTypeName.toString());		if (varType == null || paramType == null)			return false;		ITypeHierarchy hierarchy= SuperTypeHierarchyCache.getTypeHierarchy(varType);		return hierarchy.contains(paramType);	}