Currently I'm writing a code inspection in which I need to identify certain methods usages. For this purpose I'm using
visitCallExpression(expression: PsiCallExpression) and it works fine. However I need to understand in which method
PsiCallExpression was called in order to skip inspection in certain cases. For example I want my inspection to be skipped in test classes and some specific methods. I already tried using
getUseScope, but it's completely unclear how to proceed with the result and get fully qualified method name from it.