code: public static boolean isParticleMethod(FrameworkMethod method) {
          return ((null != method.getAnnotation(Test.class)) ||
                  (null != method.getAnnotation(Before.class)) ||
                  (null != method.getAnnotation(After.class)) ||
                  (null != method.getAnnotation(BeforeClass.class)) ||
                  (null != method.getAnnotation(AfterClass.class)));
      }
docs: Determine if the specified method is a test or configuration method.
  
  @param method method whose type is in question
  @return {@code true} if specified method is a particle; otherwise {@code false}