private void updateControls() {

        boolean mppDeclarationSelected = isMppDeclarationSelected();
        cbApplyMPPDeclarationsMove.setEnabled(mppDeclarationSelected);

        boolean needToMoveMPPDeclarations = mppDeclarationSelected && cbApplyMPPDeclarationsMove.isSelected();

        if (needToMoveMPPDeclarations) {
            if (!rbMoveToPackage.isSelected()) {
                rbMoveToPackage.setSelected(true);
            }
        }
        UIUtil.setEnabled(rbMoveToFile, !needToMoveMPPDeclarations, true);

        boolean moveToPackage = rbMoveToPackage.isSelected();
        classPackageChooser.setEnabled(moveToPackage && freezeTargets);
        updateFileNameInPackageField();
        fileChooser.setEnabled(!moveToPackage);
        UIUtil.setEnabled(targetPanel, moveToPackage && !needToMoveMPPDeclarations && hasAnySourceRoots(), true);
        updateSuggestedFileName();
        myHelpAction.setEnabled(false);
    }
private void updateControls()