if (this.showRGHeadings() && this.showTotalsOnlyAsCells()) {
if (this.showRecordGroupHeadings() && this.showTotalsOnlyAsCells()) {
    public boolean showHeadersForAsCells() {        if (this.showRGHeadings() && this.showTotalsOnlyAsCells()) {            return true;        }        return false;    }