private void newSnippet() {
		Label nameLabel = new BoundLabel(Lang.getBinding("dialog.input.name"));
		Label descLabel = new BoundLabel(Lang.getBinding("dialog.input.desc")); // Close enough
		TextField nameText = new TextField();
		TextField descText = new TextField();
		Button commit = new ActionButton(CarbonIcons.DOCUMENT_ADD, Lang.getBinding("dialog.finish"), () -> {
			currentSnippet.set(new Snippet(nameText.getText(), descText.getText(), editor.getText()));
			editor.setText("// " + nameText.getText());
			bringAttention(btnSave); // Must happen after setting the snippet for the order of clearing/setting effects.
		});
		commit.disableProperty().bind(nameText.textProperty().isEmpty());
		GridPane grid = new GridPane(5, 5);
		grid.addRow(0, nameLabel, nameText);
		grid.addRow(1, descLabel, descText);
		grid.add(commit, 1, 2);

		// Show the new snippet prompt above the new-snippet button
		Popover popover = new Popover(grid);
		popover.setAutoHide(true);
		popover.setArrowLocation(Popover.ArrowLocation.BOTTOM_RIGHT);
		popover.show(btnNew);
	}
Creates a new snippet to work off of.
recaf-ui/src/main/java/software/coley/recaf/ui/pane/editing/assembler/SnippetsPane.java