public StringTemplate getAbandonEducationMessage(boolean checkStudent) {
        if (!(getLocation() instanceof WorkLocation)) return null;
        boolean teacher = getStudent() != null;
        boolean student = checkStudent && getTeacher() != null;
        if (!teacher && !student) return null;

        Building school = (Building)((teacher) ? getLocation()
            : getTeacher().getLocation());
        String action = (teacher)
            ? Messages.message("abandonEducation.action.teaching")
            : Messages.message("abandonEducation.action.studying");
        return StringTemplate.template("abandonEducation.text")
                .addStringTemplate("%unit%", Messages.getLabel(this))
                .addName("%colony%", getColony().getName())
                .add("%building%", school.getNameKey())
                .addName("%action%", action);
    }