final ConnectionHandler connectionHandler = schema.getConnectionHandler();
boolean allowed = DatabaseDebuggerManager.getInstance(project).checkForbiddenOperation(connectionHandler);
if (allowed) {
final CompileType selectedCompileType = getCompileTypeSelection(compileType, null);
if (selectedCompileType != null) {
new BackgroundTask(project, "Compiling invalid objects", false, true) {
public void execute(@NotNull ProgressIndicator progressIndicator) {
doCompileInvalidObjects(schema.getPackages(), "packages", progressIndicator, selectedCompileType);
doCompileInvalidObjects(schema.getFunctions(), "functions", progressIndicator, selectedCompileType);
doCompileInvalidObjects(schema.getProcedures(), "procedures", progressIndicator, selectedCompileType);
doCompileInvalidObjects(schema.getTriggers(), "triggers", progressIndicator, selectedCompileType);