void () { boolean hasJavadoc = false; for (MemberInfo info : myMemberInfos) { final PsiMember member = info.getMember(); final boolean abstractWhenDisabled = myMemberInfoModel.isAbstractWhenDisabled(info); info.setToAbstract(abstractWhenDisabled); if (myMemberInfoModel.isAbstractEnabled(info) || abstractWhenDisabled) { if (!hasJavadoc && member instanceof PsiDocCommentOwner && ((PsiDocCommentOwner)member).getDocComment() != null) { hasJavadoc = true; } } } UIUtil.setEnabled(myJavaDocPanel, hasJavadoc, true); }