void (@NotNull String extension) { VirtualFile virtualFile = getTempDir().createVirtualFile(extension); PsiFile psi = getPsiManager().findFile(virtualFile); assertTrue(psi instanceof MarkdownFile); assertEquals(MarkdownFileType.INSTANCE, virtualFile.getFileType()); }