void () { PsiMethod[] ctrs = myJavaFacade.findClass("A1", GlobalSearchScope.allScope(myProject)).getConstructors(); PsiMethod usedCtr = ctrs[0]; assertEquals("java.lang.String", ((PsiEllipsisType)usedCtr.getParameterList().getParameters()[0].getType()).getComponentType().getCanonicalText()); assertEquals(1, ReferencesSearch.search(usedCtr).findAll().size()); PsiMethod unusedCtr = ctrs[1]; assertEquals("java.lang.Object", ((PsiEllipsisType)unusedCtr.getParameterList().getParameters()[0].getType()).getComponentType().getCanonicalText()); assertEquals(0, ReferencesSearch.search(unusedCtr).findAll().size()); }