PsiElement (PsiMethod[] methods) { final PsiMethodCallExpression definitionCall = PsiTreeUtil.getParentOfType(myElement, PsiMethodCallExpression.class); if (definitionCall != null) { final List<PsiExpression> arguments = getReflectionMethodArguments(definitionCall, 1); if (arguments != null) { final List<ReflectiveType> parameterTypes = ContainerUtil.map(arguments, type -> getReflectiveType(type)); return matchMethod(methods, parameterTypes); } } return null; }