glyph.setHasLedger(
glyph.setWithLedger(
    private void computeGlyphFeatures (SystemInfo system,                                       Glyph      glyph)    {        // Ordinate (approximate value)        Rectangle box = glyph.getContourBox();        int       y = box.y;        // Nearest/containing staff        StaffInfo staff = system.getStaffAtY(y);        // Staff interline value        glyph.setInterline(sheet.getScale().interline());        // Mass center (which makes sure moments are available)        PixelPoint centroid = glyph.getCentroid();        Scale      scale = sheet.getScale();        PagePoint  pgCentroid = scale.toPagePoint(centroid);        Staff      s = system.getScoreSystem()                             .getStaffAt(pgCentroid);        StaffPoint stCentroid = s.toStaffPoint(pgCentroid);        // Left and right margins within measure        Measure measure = s.getMeasureAt(s.toStaffPoint(pgCentroid));        // Number of connected stems        int stemNb = 0;        if (checkStemIntersect(            system.getGlyphs(),            system.getMaxGlyphWidth(),            glyph,            /* onLeft => */ true)) {            stemNb++;        }        if (checkStemIntersect(            system.getGlyphs(),            system.getMaxGlyphWidth(),            glyph,            /* onLeft => */ false)) {            stemNb++;        }        glyph.setStemNumber(stemNb);        // Has a related ledger ?        glyph.setHasLedger(            checkDashIntersect(                system.getLedgers(),                system.getMaxLedgerWidth(),                ledgerBox(box)));        // Vertical position wrt staff        glyph.setPitchPosition(staff.pitchPositionOf(centroid));    }