if(person.getAssociatedPersonRolesCount() != 0){
if(person.getAssociatedPersonRolesCount() != 0){  boolean teacher = false, employee = false;
    private List getImportantRoles(IPerson person, List mainRoles) {                if(person.getAssociatedPersonRolesCount() != 0){                                    for(IPersonRole personRole : person.getAssociatedPersonRoles()){                                    RoleType roleType = personRole.getRole().getRoleType();                                if(roleType.equals(RoleType.TEACHER)){                                            mainRoles.add("Docente");                }                else if(roleType.equals(RoleType.STUDENT)){                    mainRoles.add("Aluno");                }                else if(roleType.equals(RoleType.GRANT_OWNER)){                    mainRoles.add("Bolseiro");                }                else if(roleType.equals(RoleType.EMPLOYEE)){                    mainRoles.add("Funcionrio");                }                            }        }        return mainRoles;    }