Place removeCompilerWarning in pruneResolvedTree