LUCENE-5207: More strict checks for invalid method signatures (currently only double is accepted as parameter or return type). The method must be static, too.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene5207@1522813 13f79535-47bb-0310-9956-ffa450edef68