void () { PsiElement target = resolve(); assertTrue(target instanceof PsiParameter); PsiParameter parameter = (PsiParameter)target; assertEquals(PsiTypes.intType(), parameter.getType()); PsiJavaFile file = (PsiJavaFile)getFile(); PsiClass record = file.getClasses()[0]; assertNavigatesToFirstRecordComponent(record, target); PsiMethod[] constructors = record.getConstructors(); assertEquals(1, constructors.length); JvmParameter[] parameters = constructors[0].getParameters(); assertEquals(1, parameters.length); assertEquals(parameters[0], parameter); assertEquals(List.of("P", "T"), ContainerUtil.map(parameter.getAnnotations(), PsiAnnotation::getQualifiedName)); assertEquals(List.of("T"), ContainerUtil.map(parameter.getType().getAnnotations(), PsiAnnotation::getQualifiedName)); }