private static List<NbListedDir> getListedDirs(ModelLoadResult retrievedModels, Lookup projectInfo) {
List<NbListedDir> listedDirs = new LinkedList<>();
NbGradleProject project = getProject(retrievedModels.getMainProjectDir());
if (project == null || !OtherPlugins.hasJavaEEExtension(project)) {
WarFoldersModel warFolders = projectInfo.lookup(WarFoldersModel.class);
if (warFolders != null) {
listedDirs.add(new NbListedDir(NbStrings.getWebPages(), warFolders.getWebAppDir()));
}
}
return listedDirs;
}