void (JList list) { super.updateOnChanged(list); final PsiVariable selectedValue = (PsiVariable)list.getSelectedValue(); if (selectedValue != null) { final PsiClassType psiType = (PsiClassType)selectedValue.getType(); final PsiClass targetClass = psiType.resolve(); UIUtil.setEnabled(myVisibilityPanel, targetClass != null && !targetClass.isInterface(), true); } }