title: Java name clash, have the same erasure, neither hides the other
body: <p>I am getting this name clash error and i don't know how should i solve the problem.
  I have two classes and i am using overloaded method "createSensors". To simplify here is the code that generates the problem:</p>
  
  <pre><code>public abstract class ClassA {
      public static List&lt;Sensor&gt; createSensors(Collection&lt;? extends ClassA&gt; list) {
          List&lt;Sensor&gt; sensors = new ArrayList&lt;Sensor&gt;();
          for (ClassA s : list) {
             sensors.add(s.getSensor());
          }
          return sensors;
      }
  }
  
  public abstract class ClassB extends ClassA {
      public static List&lt;Sensor&gt; createSensors(Collection&lt;? extends ClassB&gt; list) {
          List&lt;Sensor&gt; sensors = new ArrayList&lt;Sensor&gt;();
          for (ClassB s : list) {
             sensors.add(s.getSensor());
          }
          return sensors;
     }
  }
  </code></pre>