@@ -0,0 +1,620 @@
+package com.intellij.execution.configurations;%0A%0Aimport com.intellij.openapi.extensions.Extensions;%0A%0A/**%0A * @author yole%0A */%0Apublic class ConfigurationTypeUtil %7B%0A  private ConfigurationTypeUtil() %7B%0A  %7D%0A%0A  public static %3CT extends ConfigurationType%3E T findConfigurationType(final Class%3CT%3E configurationTypeClass) %7B%0A    ConfigurationType%5B%5D types = Extensions.getExtensions(ConfigurationType.CONFIGURATION_TYPE_EP);%0A    for (ConfigurationType type : types) %7B%0A      if (configurationTypeClass.isInstance(type)) %7B%0A        //noinspection unchecked%0A        return (T)type;%0A      %7D%0A    %7D%0A    assert false;%0A    return null;%0A  %7D%0A%7D%0A

integrate Rails run configuration