if (!recruiters .stream().map(UserData::getUserName).collect(Collectors.toList()) .contains(recruiter.getUserData().getUserName())) { }