void () { myFixture.configureByFile("simpleConfig.yml"); PsiElement element = myFixture.getElementAtCaret(); PsiFile file = element.getContainingFile(); assertInstanceOf(file, YAMLFile.class); String qualifiedName = CopyReferenceAction.elementToFqn(file); assertEquals("simpleConfig.yml", qualifiedName); }