@Override
    protected void doOKAction() {
        ExtractableCodeDescriptorWithConflicts result = PresentationUtilKt.validate(originalDescriptor.getDescriptor(),
                                                                                    getFunctionName(),
                                                                                    getVisibility(),
                                                                                    parameterTablePanel.getSelectedReceiverInfo(),
                                                                                    parameterTablePanel.getSelectedParameterInfos(),
                                                                                    ((KtTypeCodeFragment) returnTypeBox.getSelectedItem()),
                                                                                    originalDescriptor.getDescriptor().getContext());

        MultiMap<PsiElement, String> conflicts = result.getConflicts();
        conflicts.values().removeAll(originalDescriptor.getConflicts().values());

        KotlinCommonRefactoringUtilKt.checkConflictsInteractively(
                project,
                conflicts,
                new Function0<>() {
                    @Override
                    public Unit invoke() {
                        close(OK_EXIT_CODE);
                        return Unit.INSTANCE;
                    }
                },
                new Function0<>() {
                    @Override
                    public Unit invoke() {
                        KotlinFirExtractFunctionDialog.super.doOKAction();
                        return onAccept.invoke(result.getDescriptor());
                    }
                }
        );
        onAccept.invoke(result.getDescriptor());
        close(OK_EXIT_CODE);
    }
@Override
    protected void doOKAction()