// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.execution.junit;

import com.intellij.execution.actions.ConfigurationContext;
import com.intellij.execution.configurations.ConfigurationFactory;
import com.intellij.execution.testframework.AbstractInClassConfigurationProducer;
import com.intellij.openapi.util.Ref;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.NotNull;

//to be deleted in 2018
@Deprecated
public class TestClassConfigurationProducer extends AbstractInClassConfigurationProducer<JUnitConfiguration> {
  public TestClassConfigurationProducer() {
    super();
  }

  @NotNull
  @Override
  public ConfigurationFactory getConfigurationFactory() {
    return JUnitConfigurationType.getInstance().getConfigurationFactories()[0];
  }

  @SuppressWarnings("RedundantMethodOverride") // binary compatibility
  @Override
  public boolean isConfigurationFromContext(@NotNull JUnitConfiguration configuration, @NotNull ConfigurationContext context) {
    return super.isConfigurationFromContext(configuration, context);
  }

  @SuppressWarnings("RedundantMethodOverride") // binary compatibility
  @Override
  protected boolean setupConfigurationFromContext(@NotNull JUnitConfiguration configuration,
                                                  @NotNull ConfigurationContext context,
                                                  @NotNull Ref<PsiElement> sourceElement) {
    return super.setupConfigurationFromContext(configuration, context, sourceElement);
  }
}

@@ -493,41 +493,112 @@
 ons.
-NotNull;%0A%0A//to be deleted in 
+ApiStatus;%0Aimport org.jetbrains.annotations.NotNull;%0A%0A@ApiStatus.ScheduledForRemoval(inVersion = %22
 2018
+%22)
 %0A@De

add @ScheduledForRemoval