private void initialisationTextPaneKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_initialisationTextPaneKeyReleased
        if (evt != null && isArrowKeyCode(evt.getKeyCode())) {
            return;
        }

        try {
            initialisationParser.parse(initialisationTextPane.getText());
        } catch (Exception ex) {
            System.out.println("Caught exception during parsing: " + ex.getMessage());
            return;
        }

        initialisationTextPane.getHighlighter().removeAllHighlights();

        if (initialisationParser.hasErrors()) {
            for (ParserError error : initialisationParser.getErrors()) {
                highlightErrorLine(error.getLineIndex(), initialisationTextPane);
            }
        } else {
            initialisationOutputTextArea.setText(initialisationParser.getOutputString());
            graphDeveloper = new GraphDeveloper(grammarParser, initialisationParser.getOutputString());
            graphDeveloper.develop();
            graphPanel.repaint();
        }
    }//GEN-LAST:event_initialisationTextPaneKeyReleased