if (!phdParticipant.isTeacher()) {
addCellValue(row, onNullEmptyString(null), 6);
addCellValue(row, onNullEmptyString(null), 7);
addCellValue(row, onNullEmptyString(null), 8);
} else {
InternalPhdParticipant internalPhdParticipant = (InternalPhdParticipant) phdParticipant;
Teacher teacher = internalPhdParticipant.getTeacher();
addCellValue(row, onNullEmptyString(teacher.getTeacherId()), 6);
Department department = internalPhdParticipant.getDepartment();
addCellValue(row, onNullEmptyString(department != null ? department.getCode() : ""), 7);
addCellValue(row, onNullEmptyString(department != null ? department.getName() : ""), 8);
}
}