def predicate(proc):
    if (proc.name() == NailgunExecutor._PROCESS_NAME):
        if (not everywhere):
            return (NailgunExecutor._PANTS_NG_BUILDROOT_ARG in proc.cmdline())
        else:
            return any((arg.startswith(NailgunExecutor._PANTS_NG_ARG_PREFIX) for arg in proc.cmdline()))
def predicate(proc):
    if (proc.name() == NailgunExecutor._PROCESS_NAME):
        if (not everywhere):
            return (NailgunExecutor._PANTS_NG_BUILDROOT_ARG in proc.cmdline())
        else:
            return any((arg.startswith(NailgunExecutor._PANTS_NG_ARG_PREFIX) for arg in proc.cmdline()))