allow interface method with empty (void) return type -> only look for type declaration if no new line has been while skipping whitespace