protected PsiMethod @NotNull [] getOverloads(@NotNull PsiMethod method) {
    PsiClass containingClass = method.getContainingClass();
    if (containingClass == null) return PsiMethod.EMPTY_ARRAY;
    return containingClass.findMethodsByName(method.getName(), false);
  }
protected PsiMethod @NotNull [] getOverloads(@NotNull PsiMethod method)