public static boolean mayHaveNonLocalSideEffects(@NotNull PsiElement element) {
    return mayHaveSideEffects(element, SideEffectChecker::isLocalSideEffect);
  }
public static boolean mayHaveNonLocalSideEffects(@NotNull PsiElement element)