private void loadSnippet() {
		ListView<Snippet> snippetsView = new ListView<>(snippetList);
		snippetsView.setCellFactory(v -> new ListCell<>() {
			@Override
			protected void updateItem(Snippet item, boolean empty) {
				super.updateItem(item, empty);

				if (empty || item == null) {
					setGraphic(null);
				} else {
					Label title = new Label(item.name());
					Label desc = new Label(item.description());
					title.getStyleClass().addAll(Styles.TITLE_4, Styles.TEXT_BOLD);
					desc.getStyleClass().add(Styles.TEXT_SUBTLE);
					VBox box = new VBox(title, desc);
					setGraphic(box);
				}
			}
		});
		snippetsView.getSelectionModel().selectedItemProperty().addListener((ob, old, cur) -> {
			editor.setText(cur.content());
			currentSnippet.setValue(cur);
		});
		snippetsView.getStyleClass().addAll(Styles.BG_INSET, "borderless");
		snippetsView.setPrefHeight(50 * snippetList.size() + 20);

		// Show the load prompt above the load button
		Popover popover = new Popover(snippetsView);
		popover.setMaxWidth(400);
		popover.setPrefHeight(400);
		popover.setAutoHide(true);
		popover.setArrowLocation(Popover.ArrowLocation.BOTTOM_RIGHT);
		popover.show(btnLoad);
	}
Shows the user a list of available snippets to load.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/assembler/SnippetsPane.java