protected IntRange scanAround(int pos) {
		int len = codeArea.getLength();

		// Check if character adjacent to the caret position is an open or closing bracket.
		IntRange found = null;
		if (pos > 0)
			found = scanAt(pos - 1);
		if (found == null && pos < len)
			found = scanAt(pos);
		return found;
	}
@param paragraph
		Paragraph index, which is {@code line - 1}.

@return {@code true} when the line belongs to the {@link #getRange() selected bracket pair range}.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/bracket/SelectedBracketTracking.java