boolean (DifferentiateContext context, Node<?, ?> affectedNode) { if (affectedNode instanceof JvmClass && ((JvmClass)affectedNode).getFlags().isGenerated()) { // If among affected files are annotation processor-generated, then we might need to re-generate them. // To achieve this, we need to recompile the whole chunk which will cause processors to re-generate these affected files debug("Turning non-incremental for the BuildTarget because dependent class is annotation-processor generated: ", affectedNode.getReferenceID()); return false; } return true; }