SI-7961 Fix false positive procedure warnings

Two issues are fixed in this commit:
 - `def foo: Unit` was detected as missing a return type
 - The warning was emitted for constructors, but
   `def this(...): Unit = ...` is not valid Scala syntax