I'm within LocalInspectionTool#checkMethod(PsiMethod, InspectionManager, boolean) and would like to see if there is a statement with the 'pattern' Collection.add(String), e.g. list.add("foo") where list is of type Collection.
Can anybody give me a hint on how to find such statements within a given PsiMethod? That would be great.
Thanks in advance for any help!