boolean (int rowIndex) { final MemberInfo info = memberInfo.get(rowIndex); if (info.isChecked()) { final PsiMember member = info.getMember(); if (isConstantField(member)) { if (enumConstants.isEmpty()) return true; final MemberInfo currentEnumConstant = enumConstants.get(0); if (((PsiField)currentEnumConstant.getMember()).getType().equals(((PsiField)member).getType())) return true; } } return false; }