This issue started happening since EAP 2019.1 Beta3 build 191.6183.20 released on March 13.
We are using the method inside a test which basically sets the caret on the red highlighted "Issue" and opens the Alt-Enter menu, then retrieves the suggested fixes.
// context is instance of ActionContext
def intentions = ShowIntentionsPass.getActionsToShow(context.editor, context.psiFile)
Sometimes it will correctly return all fixes....sometimes only the "Remove explicit type". This appears to be random.
Ive debugged through the code and I noticed:
1. ShowIntentionsPass.getActionsToShow() calls ShowIntentionsPass.getAvailableFixes()
2. ShowIntentionsPass.getAvailableFixes() calls DaemonCodeAnalyzerImpl.processHighlightsNearOffset() - the inconsistency seems to be coming from this method
What could be causing the inconsistent results?