private void initButtons() {
        toClassRadioButton.addActionListener(e -> enableTargetChooser());
        toObjectRadioButton.addActionListener(e -> enableTargetChooser());

        if (variables.length != 0 && !(targetContainer instanceof KtObjectDeclaration)) {
            toClassRadioButton.setSelected(true);
        }
        else {
            toObjectRadioButton.setSelected(true);
            if (variables.length == 0) {
                toClassRadioButton.setEnabled(false);
            }
        }

        enableTextFields();
        enableTargetChooser();
    }
private void initButtons()