sandbox/src/main/java/org/robolectric/internal/bytecode/InstrumentationConfiguration.java
public boolean shouldInstrument(MutableClass mutableClass) {
    return !(mutableClass.isInterface()
            || mutableClass.isAnnotation()
            || mutableClass.hasAnnotation(DoNotInstrument.class))
        && (isInInstrumentedPackage(mutableClass.getName())
            || instrumentedClasses.contains(mutableClass.getName())
            || mutableClass.hasAnnotation(Instrument.class))
        && !(classesToNotInstrument.contains(mutableClass.getName()))
        && !(isInPackagesToNotInstrument(mutableClass.getName()));
  }
public boolean shouldInstrument(MutableClass mutableClass) {
    return !(mutableClass.isInterface()
            || mutableClass.isAnnotation()
            || mutableClass.hasAnnotation(DoNotInstrument.class))
        && (isInInstrumentedPackage(mutableClass.getName())
            || instrumentedClasses.contains(mutableClass.getName())
            || mutableClass.hasAnnotation(Instrument.class))
        && !(classesToNotInstrument.contains(mutableClass.getName()))
        && !(isInPackagesToNotInstrument(mutableClass.getName()));
  }
Determine if {@link SandboxClassLoader} should instrument a given class.

@param   mutableClass The class to check.
@return  True if the class should be instrumented.