PsiFile (@NotNull FileType fileType, @NotNull String text) { assertInitialized(); String extension = fileType.getDefaultExtension(); associateExtensionTemporarily(fileType, extension, getTestRootDisposable()); String fileName = "aaa." + extension; return configureByText(fileName, text); }