void (boolean shouldHaveInjection, PsiFile file, Class<? extends PsiFile> ownLanguageFileClass) { assertNotNull(file); if (shouldHaveInjection) { assertTrue(file.getClass().getSimpleName().startsWith("XmlFile")); } else { assertInstanceOf(file, ownLanguageFileClass); } }