Sorry, I should have elaborated.
Say I'm inspecting a class which defines a function/variable. I'm looking for a way to count the references to this function/variable from other classes/files.
Also interesting would be a way to get a hold of the PSI element which references the function/variable.
Is there any way to do this with Detekt?