public static @NotNull PsiMethod getMethodFromCandidate(@NotNull Object object) {
    return ((CandidateWithPresentation)object).getMethod();
  }
public static @NotNull PsiMethod getMethodFromCandidate(@NotNull Object object)