void () { myFixture.configureByText("x.java", "class X { void f(@org.intellij.lang.annotations.Flow int i) { f(<caret>0); }}"); CreateParameterInfoContext context = new MockCreateParameterInfoContext(getEditor(), getFile()); PsiMethod method = PsiTreeUtil.getParentOfType(getFile().findElementAt(context.getOffset()), PsiMethod.class); assertNotNull(method); MockParameterInfoUIContext<PsiMethod> uiContext = new MockParameterInfoUIContext<>(method); String list = MethodParameterInfoHandler.updateMethodPresentation(method, PsiSubstitutor.EMPTY, uiContext); assertEquals("int i", list); PsiAnnotation[] annotations = AnnotationUtil.getAllAnnotations(method.getParameterList().getParameters()[0], false, null); assertEquals(1, annotations.length); }