if (!replacedSet.contains(type)) {
if (typeContext.isValidType()) {
// ensure there are no conflicts
if (!isConflict(type, importTypes, replacedSet, conflictCache)) {
// access the replacement strategy
TypeReplacementStrategy strategy = (TypeReplacementStrategy)
strategyMap.get(new Integer(typeContext.getType()));
if (strategy != null) {
String replacement = strategy.composeReplace(type);
Pattern pattern = Pattern.compile(strategy
.composeMatch(type));
Matcher matcher = pattern.matcher(body);
// check whether the pattern was matched
if (matcher.find()) {