I haven't seen any convincing evidence that caffeine is going to be a trigger for people. In fact, the evidence is that caffeine enhances heart function, although not six cups of it a day, or a single Mountain Dew. It wasn't caffeine that set me off...if was being in the middle of a mid-morning run. I still have a light-caffeine pot of tea each morning to start hydrating, and then have a pretty decent sized coffee, full test, mid-afternoon with the missus. My heart rate does increase, but it doesn't come close to setting off PACs or AF.
With that comment aside, I do support a methodical exploration of what could be one's triggers, and that would clearly have to include trials of caffeine-free and caffeine-loading days, probably two or three days apart as a minimum to clear out all residues and to let the heart stabilize. Also would be tests for magnesium supplementation, calcium, and potassium supplementation, exercise, the kinds of foods that reliably disagree with the person, etc. If the AF seems to be only loosely associated, or not at all, then it's something other than what you're trialing.
I had severe episodes of AFIB for years. Then READ in a news column written to a DOCTOR, who had same symptoms as mine and HE said SOME people are EXTREMELY sensitive to caffeine and CAUSES heart rythm problems. in them. I had been drinking 4 cups a day, and I decreased to 1/2 cup and it caused problems with that amount. After ELIMINATING, I have no problems. I used to have episodes lasting for a few minutes to all night long. That was when I was 21. At age 75, I started to eat some coffee ice cream made in the US, and boom I had an episode. I mentioned Mountain Dew because some people do not know it contains more caffeine than colas. I don't care what the evidence says. I know what causes it in me and the DOCTOR said the same. Before quitting coffee, I tested it over and over because I did NOT want to give up my coffee or coffee ice cream. The night I had serious arrythmia, I had eaten only 1/4 cup of coffee ice cream and two small pieces of dark chocolate.