Page 86

... we ask God to direct our thinking, especially asking that it be divorced from self-pity, dishonest or self-seeking motives. Under these conditions we can employ our mental faculties with assurance, for after all God gave us brains to use. Our thought-life will be placed on a much higher plane when our thinking is cleared of wrong motives. (Alcoholics Anonymous, page 86)
The virtues to shoot for are (a) gratitude (the antidote to self-pity) (b) straightforwardness (the antidote to dishonesty: not being tricksy, manipulative, or deceitful) and (c) giving.

When my mindset combines these three, my thinking can be trusted. If not, it can't.