private static @Nullable PsiMethod getWrappingMethodForUsage(@NotNull PsiElement usage) {
    while (!(usage instanceof PsiMethod)) {
      usage = usage.getParent();
      if(usage instanceof PsiFile || usage == null) return null;
    }
    return (PsiMethod)usage;
  }
private static @Nullable PsiMethod getWrappingMethodForUsage(@NotNull PsiElement usage)