void () { final List<String> testAnnotations = List.of("Annotated", "RequestMapping", "Ann1"); EntryPointsManagerBase.getInstance(getProject()).ADDITIONAL_ANNOTATIONS.addAll(testAnnotations); try { doTest(); } finally { EntryPointsManagerBase.getInstance(getProject()).ADDITIONAL_ANNOTATIONS.removeAll(testAnnotations); } }