public boolean onContextItemSelected(@NonNull MenuItem item) {
int itemId = item.getItemId();
if (itemId == R.id.activity_lista_alunos_menu_remover) {
AdapterView.AdapterContextMenuInfo menuInfo = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();
Aluno alunoEscolhido = adapter.getItem(menuInfo.position);
removeAluno(alunoEscolhido);
}
return super.onContextItemSelected(item);
}