private void selectRange(@Nonnull Range range) {
		CodeArea area = editor.getCodeArea();
		FxThreadUtil.run(() -> {
			area.selectRange(range.end(), range.begin());
			area.showParagraphAtCenter(area.getCurrentParagraph());
		});
	}
Selects the range in the {@link #editor} on the FX thread.

@param range
		Range to select.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/source/JavaContextActionSupport.java