public synchronized void apply() throws ConfigurationException {
PlatformDependentTools pdt = ApplicationManager.getApplication().getComponent(PlatformDependentTools.class);
for (int i = 0; i < serverList.getModel().getSize(); i++) {
NginxServerDescriptor descriptor = (NginxServerDescriptor) serverList.getModel().getElementAt(i);
if (!pdt.checkExecutable(descriptor.getExecutablePath())) {
serverList.setSelectedIndex(i);
throw new ConfigurationException(NginxBundle.message("run.error.badpath"));
}
}