YAMLFile (@NotNull String text) { return (YAMLFile) PsiFileFactory.getInstance(myProject) .createFileFromText("temp." + YAMLFileType.YML.getDefaultExtension(), YAMLFileType.YML, text, LocalTimeCounter.currentTime(), false); }