private boolean isFrustrated() {

			if (!AnimationUtils.isAnimationEnabled()) {
				// The use of being frustrated is to emphasize (animate) the window for the user in
				// order to draw attention to the window.  If animation is off, then no need to 
				// check for frustration.
				return false;
			}

			long time = System.currentTimeMillis();
			clickTimes.add(time);

			// grab all click times within the time window
			long secondsAgo = time - TIME_WINDOW;
			SortedSet<Long> recentClicks = clickTimes.tailSet(secondsAgo);
			clickTimes.retainAll(recentClicks); // drop old click times
			int clickCount = recentClicks.size();
			return clickCount > 2; // rapid clicking within the time window
		}
Number of milliseconds to track user requests
Ghidra/Framework/Docking/src/main/java/docking/ComponentProvider.java