Fix intellij warnings
Support scalar functions with @Nullable arguments