HashSet<PsiMethod> (PsiMethod method) { final HashSet<PsiMethod> methodsToPropagate = new HashSet<>(); for (PsiClass inheritor : ClassInheritorsSearch.search(method.getContainingClass())) { methodsToPropagate.add(inheritor.getConstructors()[0]); } return methodsToPropagate; }