private void instrumentClass(Class<?> targetClass, Recorder recorder,
InstrumentationFilter filter) throws NonInstrumentableTypeException {
if (targetClass.isArray()) {
throw new NonInstrumentableTypeException("Can't instrument arrays");
}
for (Constructor<?> constructor : targetClass.getDeclaredConstructors()) {
getContext().add(targetClass, constructor, recorder);
}