import org.jetbrains.annotations.NotNull;
public class CfmlRunner extends DefaultProgramRunner {
@Override
protected RunContentDescriptor doExecute(@NotNull RunProfileState state, @NotNull ExecutionEnvironment env) throws ExecutionException {
final RunProfile runProfileRaw = env.getRunProfile();
if (runProfileRaw instanceof CfmlRunConfiguration) {
FileDocumentManager.getInstance().saveAllDocuments();
final CfmlRunConfiguration runProfile = (CfmlRunConfiguration)runProfileRaw;
final CfmlRunnerParameters params = runProfile.getRunnerParameters();
BrowserLauncher.getInstance().browse(params.getUrl(), params.getNonDefaultBrowser(), env.getProject());