public static boolean isCompletionMode(@NotNull PsiCall expression) {
    return expression.getUserData(COMPLETION_HINTS) != null;
  }
public static boolean isCompletionMode(@NotNull PsiCall expression)