boolean (TargetBackend targetBackend, List<String> backends) { if (targetBackend == TargetBackend.ANY) return false; return backends.isEmpty() || backends.contains(targetBackend.name()) || isCompatibleTargetExceptAny(targetBackend.getCompatibleWith(), backends); }