public @Nullable RunConfiguration createLightConfiguration(final @NotNull ConfigurationContext context) {
    @SuppressWarnings("unchecked")
    T configuration = (T)getConfigurationFactory().createTemplateConfiguration(context.getProject());
    final Ref<PsiElement> ref = new Ref<>(context.getPsiLocation());
    try {
      if (!setupConfigurationFromContext(configuration, context, ref)) {
        return null;
      }
    }
    catch (ClassCastException e) {
      LOG.error(getConfigurationFactory() + " produced wrong type", e);
      return null;
    }
    return configuration;
  }
public @Nullable RunConfiguration createLightConfiguration(final @NotNull ConfigurationContext context)