title: cannot find symbol Serializable?
body: <p>Why does this:</p>
  
  <pre><code>package com.example;
  
  import com.example.Foo.Bar.Baz;
  
  import java.io.Serializable; // I did import Serializable...
  
  public class Foo implements Serializable {
  
      public final Bar bar;
  
      public Foo(Bar bar) {
          this.bar = bar == null ? new Bar(Baz.ONE) : bar;
      }
  
      public static class Bar implements Serializable { // this is line 15, where the compiler error is pointing 
  
          public enum Baz {
              ONE
          }
  
          public final Baz baz;
  
          public Bar(Baz baz) {
              this.baz = baz;
          }
      }
  
  }
  </code></pre>
  
  <p>Give me this:</p>
  
  <pre><code>[ERROR] &lt;path to file&gt;/Foo.java:[15,44] cannot find symbol
  [ERROR] symbol:   class Serializable
  [ERROR] location: class com.example.Foo
  </code></pre>
  
  <p>If I replace the Serializable interface to something else like :</p>
  
  <pre><code>public interface MyMarkerInterface {}
  </code></pre>
  
  <p>then the code compiles. (even <code>Cloneable</code> works!)</p>
  
  <p>What makes this happen?
  intelliJ didn't spot anything wrong through static analysis. </p>