primitives = Arrays.asList(p, env.child);
} else {
primitives = Collections.singletonList(p);
}
if (fix != null) {
return new FixableTestError(null, getSeverity(), description, null, matchingSelector.toString(), 3000, primitives, fix);
} else {
return new TestError(null, getSeverity(), description, null, matchingSelector.toString(), 3000, primitives);
}
} else {
return null;