private static @NotNull JavaResolveResult @NotNull [] getMethodCandidates(PsiCall call, PsiResolveHelper resolveHelper) {
    if (call instanceof PsiMethodCallExpression) {
      return ((PsiMethodCallExpression)call).getMethodExpression().multiResolve(true);
    }
    if (call instanceof PsiNewExpression) {
      PsiType type = ((PsiExpression)call).getType();
      PsiExpressionList argumentList = call.getArgumentList();
      if (type instanceof PsiClassType && argumentList != null) {
        return resolveHelper.multiResolveConstructor((PsiClassType)type, argumentList, call);
      }
    }
    if (call instanceof PsiEnumConstant) {
      JavaResolveResult result = call.resolveMethodGenerics();
      if (result != JavaResolveResult.EMPTY) {
        return new JavaResolveResult[]{result};
      }
    }
    return JavaResolveResult.EMPTY_ARRAY;
  }
private static @NotNull JavaResolveResult @NotNull [] getMethodCandidates(PsiCall call, PsiResolveHelper resolveHelper)