@Override
public List<Node> keys() {
if (WPUtils.isWP(phpModule)) {
List<Node> list = new ArrayList<Node>();
WordPressModule module = WordPressModule.Factory.forPhpModule(phpModule);
// plugins
FileObject pluginsDirectory = module.getPluginsDirectory();
if (pluginsDirectory != null) {
addNode(list, pluginsDirectory);
}
// themes
FileObject themesDirectory = module.getThemesDirectory();
if (themesDirectory != null) {
addNode(list, themesDirectory);
}
return list;
}