private void setStyledDocument() {
        final StyleContext cont = StyleContext.getDefaultStyleContext();
        final AttributeSet attrOrange = cont.addAttribute(cont.getEmptySet(),
                StyleConstants.Background, Color.ORANGE);
        final AttributeSet attrGreen = cont.addAttribute(cont.getEmptySet(),
                StyleConstants.Background, Color.GREEN);
        final MutableAttributeSet wholeDocAttrs = new SimpleAttributeSet();
        StyleConstants.setFontSize(wholeDocAttrs, this.fontSize);

        DefaultStyledDocument document = new DefaultStyledDocument();

        ArrayList<Integer> indexOfNotFoundWords = getSortedIndexes(this.notFoundWords);
        ArrayList<Integer> indexOfCorrectedWords = getSortedIndexes(this.correctedWords);

        int indxNotFoundCounter = 0;
        final int indxNotFoundSize = indexOfNotFoundWords.size();
        int indxCorrectedCounter = 0;
        final int indxCorrectedSize = indexOfCorrectedWords.size();

        int splitTextSize = splitText.length;

        for (int i = 0; i < splitTextSize; i++) {

            int documentLength = document.getLength();

            if (indxNotFoundCounter < indxNotFoundSize) {
                if (indexOfNotFoundWords.get(indxNotFoundCounter) == i) {
                    addStyledTextToDocument(document, documentLength, " ", null);
                    addStyledTextToDocument(document, documentLength + 1, splitText[i], attrOrange);
                    indxNotFoundCounter++;
                    continue;
                }
            }

            AttributeSet tmpAttr = null;

            if (indxCorrectedCounter < indxCorrectedSize) {
                if (indexOfCorrectedWords.get(indxCorrectedCounter) == i) {
                    tmpAttr = attrGreen;
                    addStyledTextToDocument(document, documentLength, " ", null);
                    documentLength++;
                    indxCorrectedCounter++;
                }
            }

            addStyledTextToDocument(document, documentLength, splitText[i], tmpAttr);
        }
        document.setCharacterAttributes(0, document.getLength(), wholeDocAttrs, false);
        this.setDocument(document);
    }