Add checks for deprecated method and function definitions
As already done in #33 (closed) we check deprecated method and function usages.
Still it's possible to overwrite those. We should implement a check for method definitions to check whether this will be incompatible with a changed / removed method.