Set<PsiMethod> () { final Set<PsiMethod> privateMethods = new HashSet<>(); final PsiMethod[] methods = aClass.getMethods(); for (PsiMethod method : methods) { ProgressManager.checkCanceled(); if (method.hasModifierProperty(PsiModifier.PRIVATE)) { privateMethods.add(method); } } return privateMethods; }