private void restoreLineThickness(Annotation annotation) {
        // check if we need to set line thickness to default value
        if (linkType == Annotation.VISIBLE_RECTANGLE &&
                lineThickness == 0) {
            lineThickness = 1f;
        }

        // update the border width line thickness
        Object border = annotation.getObject(Annotation.BORDER_KEY);
        if (border != null && border instanceof Vector) {
            Vector borderProps = (Vector) border;
            if (borderProps.size() >= 3) {
                borderProps.set(2, lineThickness);
            }
        }
        // check for a border style
        if (annotation.getBorderStyle() != null) {
            BorderStyle borderStyle = annotation.getBorderStyle();
            borderStyle.setStrokeWidth(lineThickness);
        }
    }