@Nonnull @Override public PsiPackage createPackage(@Nonnull PsiManager psiManager, @Nonnull PsiPackageManager packageManager, @Nonnull Class<? extends ModuleExtension> extensionClass, @Nonnull String packageName) { return new PsiPackageBase(psiManager, packageManager, extensionClass, packageName) { @Override protected ArrayFactory<? extends PsiPackage> getPackageArrayFactory() { return PsiPackage.ARRAY_FACTORY; } @RequiredReadAction @Nonnull @Override public Language getLanguage() { return SandLanguage.INSTANCE; } }; }