DataContext (VirtualFile file) { Project project = myFixture.getProject(); return SimpleDataContext.builder() .add(CommonDataKeys.PROJECT, project) .add(CommonDataKeys.VIRTUAL_FILE, file) .add(PlatformCoreDataKeys.PROJECT_FILE_DIRECTORY, PlatformTestUtil.getOrCreateProjectBaseDir(project)) .build(); }