code: public boolean isDirectChildOfAccount(final Account effectiveAccount,
              final Account operatedAccount) {
          return operatedAccount.getParentSid().equals(effectiveAccount.getSid());
      }
docs: Checks if the operated account is a direct child of effective account
  @param operatedAccount
  @return