public static boolean hasSideEffects(@Nullable PsiElement element) {
    return hasSideEffectsOrReferencesMissingVars(element, null);
  }
public static boolean hasSideEffects(@Nullable PsiElement element)