public static void removeWordsStartWithConsonant(Text text, int length) {
        log.trace("Subtask N12");
        for (int i = 0; i < text.getAllElements().size(); i++) {
            Sentence sentence = text.getChildElement(i);
            if (sentence.getClass() != Listing.class) {
                for (int j = 0; j < sentence.getAllElements().size(); j++) {
                    SentencePart sentencePart = sentence.getChildElement(j);
                    if (sentencePart instanceof Word) {
                        Word word = (Word) sentencePart;
                        if (word.getLength() == length && isStartsWithConsonant(word)) {
                            sentence.remove(word);
                        }
                    }

                }
            }
        }
    }