public boolean isReadOnly() {
        return isData() && (flagword & FLAG_READ_ONLY) != 0;
    }
Returns true if this segment is read-only.
@return true if this segment is read-only
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/ne/Segment.java