FileObject wordPressRoot = null;
if (sourceDirectory != null) {
wordPressRoot = sourceDirectory.getFileObject(wordPressRootDirectoryPath);
}
ValidationResult result = new WordPressCustomizerValidator()
.validateWpContent(phpModule, wordPressRoot, contentName)
.validateWordPressRootDirectory(phpModule, getPanel().getWordPressRootDirectory())
.validatePluginsDirectory(phpModule, getPanel().getPluginsDirectory())
.validateThemesDirectory(phpModule, getPanel().getThemesDirectory())
.getResult();