public boolean isParagraphVisible(int line) {
		// TODO: If we ever add paragraph folding back, we need to check those cases here and return false

		// We use the internal virtual flow because the provided methods call 'layout()' unnecessarily
		//  - firstVisibleParToAllParIndex()
		//  - lastVisibleParToAllParIndex()
		// It is very likely by the time of calling this that our text is already populated and laid out.
		// This gets called rather frequently so the constant layout requests contribute a massive waste of time.
		// If we use these methods from the internal 'VirtualFlow' we skip all that and the result is almost instant.
		return line >= virtualFlow.getFirstVisibleIndex() && line <= virtualFlow.getLastVisibleIndex();
	}
@param line
		Paragraph index, 0-based.

@return {@code true} when the paragraph is visible.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/Editor.java