Use sourceFiles.forall instead of the for(...) (Java way).