public boolean canSetCodeDelegation(final Account account) {
    return account != null && (account.getCode().isEmpty() || hasCodeDelegation(account.getCode()));
  }
Returns true if the provided account has either no code set or has already delegated code.

@param account the account to check.
@return {@code true} if the account can set delegated code, {@code false} otherwise.
evm/src/main/java/org/hyperledger/besu/evm/worldstate/CodeDelegationService.java