boolean (Collection<PsiMethod> psiMethods) { final Set<Integer> accessLevelSet = new HashSet<>(); for (PsiMethod psiMethod : psiMethods) { accessLevelSet.add(PsiUtil.getAccessLevel(psiMethod.getModifierList())); } return accessLevelSet.size() <= 1; }