void () { PsiMethod[] ctrs = myJavaFacade.findClass("Foo", GlobalSearchScope.allScope(myProject)).getConstructors(); PsiMethod method = ctrs[0]; assertEquals(0, method.getParameterList().getParametersCount()); assertEquals(0, ReferencesSearch.search(method).findAll().size()); PsiMethod usedMethod = ctrs[1]; assertEquals(1, usedMethod.getParameterList().getParametersCount()); assertEquals(1, ReferencesSearch.search(usedMethod).findAll().size()); }