boolean (TargetBackend targetBackend, File file) { if (targetBackend == TargetBackend.ANY) return true; List<String> doNotTarget = findLinesWithPrefixesRemoved(textWithDirectives(file), "// DONT_TARGET_EXACT_BACKEND: "); if (doNotTarget.contains(targetBackend.name())) return false; List<String> backends = findLinesWithPrefixesRemoved(textWithDirectives(file), "// TARGET_BACKEND: "); return isCompatibleTargetExceptAny(targetBackend, backends); }