String () { if (myPrivateRadioButton.isSelected()) return PsiModifier.PRIVATE; if (myProtectedRadioButton.isSelected()) return PsiModifier.PROTECTED; if (myPublicRadioButton.isSelected()) return PsiModifier.PUBLIC; if (myPropertyRadioButton.isSelected()) return PsiModifier.PACKAGE_LOCAL; throw new IncorrectOperationException("no visibility selected"); }