void (@NotNull Module module, @NotNull ModifiableRootModel model, @NotNull ContentEntry contentEntry) { super.configureModule(module, model, contentEntry); PsiTestUtil.addProjectLibrary(model, "JUnit", IntelliJProjectConfiguration.getProjectLibraryClassesRootPaths("JUnit4")); if (getTestName(true).endsWith("Runtime")) { for (OrderEntry entry : model.getOrderEntries()) { if (entry instanceof LibraryOrderEntry && "JUnit".equals(((LibraryOrderEntry)entry).getLibraryName())) { ((LibraryOrderEntry)entry).setScope(DependencyScope.RUNTIME); } } } }