void () { init( """ /** * @param <P<caret> * @author <a href='mailto:xxx@xxx.com'>Mr. Smith</a> */ public class Test<P> { }""", JavaFileType.INSTANCE ); CodeInsightSettings settings = CodeInsightSettings.getInstance(); boolean oldValue = settings.JAVADOC_GENERATE_CLOSING_TAG; settings.JAVADOC_GENERATE_CLOSING_TAG = true; try { type('>'); } finally { settings.JAVADOC_GENERATE_CLOSING_TAG = oldValue; } checkResultByText( """ /** * @param <P> * @author <a href='mailto:xxx@xxx.com'>Mr. Smith</a> */ public class Test<P> { }""" ); }