private ErrorProneTestCompiler compiler;
@Before
public void setUp() {
compiler = new ErrorProneTestCompiler.Builder()
.report(new ErrorProneScanner(new EnabledPredicate() {
@Override
public boolean isEnabled(Class<? extends BugChecker> check, BugPattern annotation) {
return asList(DeadException.class, EmptyIfStatement.class, SelfAssignment.class)
.contains(check);
}