class ProjectTeamServiceImpl extends AbstractProjectServiceImpl implements ProjectTeamService {

    @Override
    @Transactional
    public ServiceResult<Void> removeInvite(long inviteId, long projectId) {
        return getInvite(inviteId)
                .andOnSuccess(invite -> getProject(projectId)
                        .andOnSuccess(project -> validateInvite(invite, project)
                                .andOnSuccess(() -> deleteInvite(invite)
                                )
                        )
                );
    }

    public  ProjectTeamServiceImpl();

}