ThreeState (List<PsiMethod> methods) { boolean hasEmpty = methods.isEmpty(); boolean hasNonEmpty = false; for (PsiMethod method : methods) { if (!method.getParameterList().isEmpty()) { hasNonEmpty = true; } else { hasEmpty = true; } } return hasNonEmpty && hasEmpty ? ThreeState.UNSURE : hasNonEmpty ? ThreeState.YES : ThreeState.NO; }