private void setParserError(@Nonnull Throwable error) {
			FxThreadUtil.run(() -> {
				textProperty().unbind();
				textProperty().bind(Lang.getBinding("java.parse-state.error"));
				setOnAction(e -> {
					BoundLabel title = new BoundLabel(Lang.getBinding("java.parse-state.error-details"));

					String exceptionType = error.getClass().getSimpleName();
					String message = error.getMessage();

					TextArea errorTextArea = new TextArea();
					errorTextArea.setEditable(false);
					errorTextArea.setText(exceptionType + "\n" + "=".repeat(exceptionType.length()) + "\n" + message);

					Popover popover = new Popover();
					popover.setContentNode(new VBox(title, errorTextArea));
					popover.setArrowLocation(Popover.ArrowLocation.BOTTOM_RIGHT);
					popover.show(this);
				});
				setVisible(true);
			});
		}
Called when a new AST unit was requested, but an error occurred in parsing.

@param error
		The exception result from the parser.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/source/JavaContextActionSupport.java