Expression (Project project, LanguageFileType fileType, String expression) { final PsiFile file = PsiFileFactory.getInstance(project).createFileFromText("dummy.xpath", fileType, expression, LocalTimeCounter.currentTime(), true); return new Expression(file, fileType); }