findAnnotatedMethod(errors, DoFn.ProcessElement.class, fnClass, true); Method startBundleMethod = findAnnotatedMethod(errors, DoFn.StartBundle.class, fnClass, false); Method finishBundleMethod = findAnnotatedMethod(errors, DoFn.FinishBundle.class, fnClass, false); Method setupMethod = findAnnotatedMethod(errors, DoFn.Setup.class, fnClass, false); Method teardownMethod = findAnnotatedMethod(errors, DoFn.Teardown.class, fnClass, false); Method onWindowExpirationMethod = findAnnotatedMethod(errors, DoFn.OnWindowExpiration.class, fnClass, false); Method getInitialRestrictionMethod = findAnnotatedMethod(errors, DoFn.GetInitialRestriction.class, fnClass, false); Method splitRestrictionMethod = findAnnotatedMethod(errors, DoFn.SplitRestriction.class, fnClass, false); Method getRestrictionCoderMethod = findAnnotatedMethod(errors, DoFn.GetRestrictionCoder.class, fnClass, false); Method newTrackerMethod = findAnnotatedMethod(errors, DoFn.NewTracker.class, fnClass, false);