boolean (PsiClass containingClass) { if (containingClass.getFields().length == 0) { final PsiMethod[] methods = containingClass.getMethods(); for (PsiMethod method : methods) { if (method.getBody() != null) return false; } return true; } return false; }