}
private void filterLocations(MapInstance map) throws OperationCanceledException, CoreException {
List<Location> result = new ArrayList<Location>();
for (Location each: map.locations()) {
IJavaElement javaElement = Resources.asJavaElement(each.getDocument());
IType[] findTestTypes = JUnitCore.findTestTypes(javaElement, null);
// we have found a test within the resource, in our case this means the
// resource is a test as the resources represent files a.k.a. compilation units
if (findTestTypes.length >= 1) continue;
result.add(each);