void () { PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule())); assertNotNull(collectionsClass); collectionsClass = (PsiClass)collectionsClass.getNavigationElement(); assertTrue(!(collectionsClass instanceof PsiCompiledElement)); final String text = collectionsClass.getContainingFile().getText(); configureFromFileText("Collections.java", StringUtil.convertLineSeparators(StringUtil.replace(text, "package java.util;", "package java.utilx; import java.util.*;"))); doTestConfiguredFile(false, false, null); }