void (@NotNull Project project, @NotNull TestDataFile testDataFile) { VirtualFile file = testDataFile.getVirtualFile(); if (file != null) { PsiNavigationSupport.getInstance().createNavigatable(project, file, -1).navigate(true); } else { String displayPath = getHtmlDisplayPathForMissingFile(project, testDataFile.getPath()); int rc = Messages.showYesNoDialog(project, DevKitBundle.message("testdata.file.doesn.not.exist", displayPath), DevKitBundle.message("testdata.create.dialog.title"), Messages.getQuestionIcon()); if (rc == Messages.YES) { createFileAndNavigate(project, testDataFile.getPath()); } } }