private boolean isLastPicture() {
        int index = 0;
        CobolToken last = this.allTokens.getFromLast(index);
        if (last == null) {
            return false;
        }
        if (last.getType() == CobolType.CONTINUATION) {
            index++;
            last = this.allTokens.getFromLast(index);
        }

        String text = last.getText().toUpperCase();
        if (!text.equals("IS") && !text.equals("PIC") && !text.equals("PICTURE")) {
            //  Maybe we are in PICTURE IS some-partial-picture-string.
            index++;
            last = this.allTokens.getFromLast(index);
            if (last != null) {
                text = last.getText().toUpperCase();
                index++;
            }
        }

        if (text.equals("IS")) {
            index++;
            last = this.allTokens.getFromLast(index);
            if (last != null) {
                text = last.getText().toUpperCase();
                }
            }

        return (text.equals("PIC") || text.equals("PICTURE"));
    }