void (@NotNull List<? extends FilePath> paths) { final ReadonlyStatusHandlerImpl readonlyStatusHandler = (ReadonlyStatusHandlerImpl)ReadonlyStatusHandler.getInstance(myProject); final boolean savedOption = readonlyStatusHandler.getState().SHOW_DIALOG; readonlyStatusHandler.getState().SHOW_DIALOG = false; try { readonlyStatusHandler.ensureFilesWritable(mapNotNull(paths, FilePath::getVirtualFile)); } finally { readonlyStatusHandler.getState().SHOW_DIALOG = savedOption; } }