void () { boolean enabled = myInputVariables.length > 0 && myInputVariables[myInputVariables.length - 1].type instanceof PsiArrayType; if (myCreateInnerClassRb.isSelected()) { myCbMakeVarargs.setEnabled(enabled); } else { myCbMakeVarargsAnonymous.setEnabled(enabled); } }