public LexAnalyzerWorker(MainPanel mainPanel, boolean runAfterCheck) {
this.panel = mainPanel;
this.runAfterCheck = runAfterCheck;
this.progressBar = Principal.getInstance().getProgressBar();
this.formattedLineList = new ArrayList<String>();
highlighter = new TextHighlighter(this.panel.getCodeTextArea(), Color.red);
highlighter.removeHighlights();
}