void () { final PsiClass targetClass = getSelectedTargetClass(); myFieldNameField.setSuggestions(InheritanceToDelegationHandler.suggestFieldNames(myClass, targetClass)); myInnerClassNameField.getComponent().setEnabled(InheritanceToDelegationUtil.isInnerClassNeeded(myClass, targetClass)); myInnerClassNameField.setSuggestions(new String[]{InheritanceToDelegationHandler.suggestTargetClassName(targetClass)}); myDataChangedListener = () -> validateButtons(); myInnerClassNameField.addDataChangedListener(myDataChangedListener); myFieldNameField.addDataChangedListener(myDataChangedListener); myMemberSelectionPanel.getTable().setMemberInfos(myBasesToMemberInfos.get(targetClass)); myMemberSelectionPanel.getTable().fireExternalDataChange(); }