void (String newName, PsiDirectory targetDirectory, int @Nullable [] choice, @NlsContexts.DialogTitle String title, @NotNull MultiMap<PsiDirectory, PsiFile> existingFiles, @NotNull List<? super PsiFile> added) { SkipOverwriteChoice defaultChoice = choice != null && choice[0] > -1 ? SkipOverwriteChoice.values()[choice[0]] : null; try { defaultChoice = handleExistingFiles(defaultChoice, choice, newName, targetDirectory, title, existingFiles, added, null); } finally { if (choice != null && defaultChoice != null) { choice[0] = defaultChoice.ordinal() % 2; } } }