void () { createSaveAndOpenFile("sql/Date.java", "package sql; public class Date{}"); UIUtil.dispatchAllInvocationEvents(); PsiDocumentManager.getInstance(getProject()).commitAllDocuments(); doTest(false); }