Runnable () { RunnerAndConfigurationSettings settings = myNode.getConfigurationSettings(); RunManager runManager = RunManager.getInstance(settings.getConfiguration().getProject()); return runManager.hasSettings(settings) ? () -> runManager.removeConfiguration(settings) : null; }