void (@NotNull Project project, @NotNull VirtualFile file) { LightEditConfirmationDialog dialog = new LightEditConfirmationDialog(project); dialog.show(); if (dialog.isDontAsk()) { switch (dialog.getExitCode()) { case LightEditConfirmationDialog.STAY_IN_LIGHT_EDIT -> myConfiguration.preferredMode = LightEditConfiguration.PreferredMode.LightEdit; case LightEditConfirmationDialog.PROCEED_TO_PROJECT -> myConfiguration.preferredMode = LightEditConfiguration.PreferredMode.Project; } } if (dialog.getExitCode() == LightEditConfirmationDialog.PROCEED_TO_PROJECT) { LightEditOpenInProjectIntention.performOn(getOrCreateProject(), file); } }