void () { final String commonPath = PathManagerEx.getTestDataPath().replace(File.separatorChar, '/') + "/psi/types/src"; final VirtualFile[] commonRoot = { null }; ApplicationManager.getApplication().runWriteAction(() -> { commonRoot[0] = LocalFileSystem.getInstance().refreshAndFindFileByPath(commonPath); }); PsiTestUtil.addSourceRoot(myModule, commonRoot[0]); }