void () { if (enumConstants.isEmpty()) { MemberInfo selected = null; for (MemberInfo info : memberInfo) { if (info.isChecked()) { selected = info; break; } } if (selected != null && isConstantField(selected.getMember())) { enumConstants.add(selected); selected.setToAbstract(true); } } for (MemberInfo info : memberInfo) { final PsiMember member = info.getMember(); if (isConstantField(member)) { if (enumConstants.isEmpty() || ((PsiField)enumConstants.get(0).getMember()).getType().equals(((PsiField)member).getType())) { if (!enumConstants.contains(info)) enumConstants.add(info); info.setToAbstract(true); } } } }