Write inspection to detect pack.ages.Class.fun
visitReferenceExpressionlooks for aPsiReferenceExpressionwhere thelastChildname isfun.- Then it checks whether
expression.resolve().stub.parentStubcorresponds topack.ages.Class
A AbstractUastNonRecursiveVisitor looking for the following UExpression node is setup :
sourcePsiis aREFERENCE_EXPRESSIONcorresponding toinvokeLater- the "parent"
sourcePsi?.parent?.parent?.firstChild?.lastChildis aREFERENCE_EXPRESSIONcorresponding toSwingUtilities
