How to find the class of a function call (KtNameReferenceExpression)

Hello,

I have a PsiElement of type KtCallExpression which I can use to get access to a KtNameReferenceExpression`. Is there an utility class in Intellij Idea Plugin SDK in order to give you the class where the function is declared?

Example:
Having the following code:

LayoutInflater.from(context).inflate(R.layout.my_layout)

How can I get the class name of the method inflate?

Thank you in advance.

Please sign in to leave a comment.