public void setKeysStructure(ArrayList<LangFileElement> enFileStructure) {
        ArrayList<LangFileElement> elementsToRemove = new ArrayList<>();
        for (LangFileElement lfe: fileStructure) {
            if (lfe.getType() != LangFileElement.HEADER && lfe.getType() != LangFileElement.STATEMENT) {
                elementsToRemove.add(lfe);
            }
        }

        for (LangFileElement lfe: elementsToRemove) {
            fileStructure.remove(lfe);
        }

        for (LangFileElement lfe: enFileStructure) {
            if (lfe.getType() != LangFileElement.HEADER) {
                fileStructure.add(lfe);
                if (lfe.getType() == LangFileElement.KEY && !definitions.containsKey(lfe.getLine())) {
                    definitions.put(lfe.getLine(), "");
                }
            }
        }
    }