private void enableTextFields() {
        for (EditorTextField textField : oldClassParameterNameFields.values()) {
            textField.setEnabled(true);
        }
        if (toClassRadioButton.isSelected()) {
            KtNamedDeclaration variable = variables[targetVariableList.getSelectedIndex()];
            KtClassOrObject containingClass = KtPsiUtilKt.getContainingClassOrObject(variable);
            if (!(containingClass instanceof KtClass)) return;
            if (!(variable instanceof KtParameter) || ((KtParameter) variable).hasValOrVar()) {
                Set<KtNamedDeclaration> members = thisClassesToMembers.get(containingClass);
                if (members != null && members.size() == 1 && members.contains(variable)) {
                    EditorTextField field = oldClassParameterNameFields.get(containingClass);
                    if (field != null) field.setEnabled(false);
                }
            }
        }
    }
private void enableTextFields()