title: Static Method in Interface with Generic signature
body: <p>As of Java 8 you can have default or static methods implemented in Interfaces as the below</p>
  
  <pre><code>public interface DbValuesEnumIface&lt;ID, T extends Enum&lt;T&gt;&gt; {
     T fromId(ID id);
  
     ID getId();
     static String getDescriptionKey(){
        return "this is a test";
     }
  }
  </code></pre>
  
  <p>I would like to declare the above with the static method having a signature that uses bounds defined by the implementing classes since the method's implementation should be the same for all,with the only thing different should be the generics declared, as such:</p>
  
  <pre><code>public interface DbValuesEnumIface&lt;ID, T extends Enum&lt;T&gt;&gt; {
  
     public static T fromId(ID id) {
          if (id == null) {
              return null;
          }
          for (T en : T.values()) {
              if (en.getId().equals(id)) {
                  return en;
              }
          }
      }
  
      ID getId();
  
      String getDescriptionKey();
  }
  ...
  public enum Statuses implements DbValuesEnumIface&lt;Integer,Statuses&gt;
  </code></pre>
  
  <p>which breaks because T and ID are not static and cant be referenced from a static context.</p>
  
  <p>So, how should the above be modified to compile successfully and if thats not possible, how the above should be implemented to achieve the desired purpose while avoiding code duplication within implementing classes .</p>