void () { // Inspired by IDEA-70898. String initial = """ /** * @param <T<caret> */ class Test<T> { }"""; init(initial, JavaFileType.INSTANCE); final CodeInsightSettings settings = CodeInsightSettings.getInstance(); final boolean old = settings.JAVADOC_GENERATE_CLOSING_TAG; try { settings.JAVADOC_GENERATE_CLOSING_TAG = true; type("> <test-tag>"); String expected = """ /** * @param <T> <test-tag><caret></test-tag> */ class Test<T> { }"""; checkResultByText(expected); } finally { settings.JAVADOC_GENERATE_CLOSING_TAG = old; } }