public static @NotNull Collection<PsiExpression> getPossibleInitializationElements(@NotNull PsiElement qualifierExpression) {
    if (qualifierExpression instanceof PsiMethodCallExpression call) {
      return Collections.singletonList(call);
    }
    if (qualifierExpression instanceof PsiReferenceExpression ref) {
      if (!(ref.resolve() instanceof PsiVariable var)) {
        return Collections.emptyList();
      }
      Collection<PsiExpression> variableValues = getVariableValues(var, qualifierExpression);
      if (variableValues.isEmpty()) {
        return DfaPsiUtil.getVariableAssignmentsInFile(var, false, qualifierExpression);
      }
      return variableValues;
    }
    if (qualifierExpression instanceof PsiLiteralExpression literal) {
      return Collections.singletonList(literal);
    }
    return Collections.emptyList();
  }
public static @NotNull Collection<PsiExpression> getPossibleInitializationElements(@NotNull PsiElement qualifierExpression)