code: public Collection<? extends AntlrConfigMethod> getConfigMethods(final TestClass testClass, final Object testInstance)
      {
          final List<AntlrConfigMethod> configMethods = new ArrayList<AntlrConfigMethod>();
          for (FrameworkMethod configMethod : testClass.getAnnotatedMethods(Configuration.class))
          {
              final Method method = configMethod.getMethod();
  
              if (!Modifier.isAbstract(method.getModifiers())
                  && method.getParameterTypes() != null
                  && method.getParameterTypes().length == 0
                  && method.getReturnType().isArray()
                  && Option.class.isAssignableFrom(method.getReturnType().getComponentType()))
              {
                  final AppliesTo appliesToAnnotation = configMethod.getAnnotation(AppliesTo.class);
                  if (appliesToAnnotation != null)
                  {
                      configMethods.add(new AppliesToConfigMethod(method, Modifier.isStatic(method.getModifiers()) ? null : testInstance));
                  }
                  else
                  {
                      configMethods.add(new DefaultConfigMethod(method, Modifier.isStatic(method.getModifiers()) ? null : testInstance));
                  }
              }
          }
          return configMethods;
      }
docs: {@inheritDoc}