if (parentClass)
{
String className = variableClass.getName() + "Mediator.as";
PsiDirectory containingDirectory = variableClass.getContainingFile().getContainingDirectory();
Runnable runnable = (Runnable) new CreateMediatorRunnable(containingDirectory, className);
ApplicationManager.getApplication().runWriteAction(runnable);
}
}