@Test
		void testBlock1() {
			// Change for inserting a space
			int blockComment1 = TEXT_JAVA.indexOf("* one");
			int blockComment1Open = TEXT_JAVA.lastIndexOf("/**", blockComment1);
			int blockComment1Close = TEXT_JAVA.indexOf("*/", blockComment1) + 2;
			PlainTextChange change = new PlainTextChange(blockComment1 + 1, "", " ");
			String modifiedText = apply(change);

			// The restyled range should just be the block comment.
			// The change does not break the match, so we do not need to expand.
			IntRange restyledRange = SyntaxUtil.getRangeForRestyle(modifiedText, styleSpans, HIGHLIGHTER_JAVA, change);
			String matchedText = restyledRange.sectionOfText(modifiedText);
			assertTrue(matchedText.matches(JAVADOC_PATTERN));
			assertEquals(blockComment1Open, restyledRange.start());
			assertEquals(blockComment1Close + change.getNetLength(), restyledRange.end());
		}
Change for inserting a space in a javadoc comment.
Should only refresh the range of the javadoc comment, nothing before or after.
recaf-ui/src/test/java/software/coley/recaf/ui/control/richtext/syntax/RegexSyntaxHighlighterTest.java