IntelliJ cannot resolve symbol "newFixedThreadPool"
<p>I'm new to IntelliJ and Java in general. 
I'm trying to learn multithreading and I came across the Executors class. </p>

<p>So I wanted test this, here is a sample of my code. </p>

<pre><code>import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class LegController {
    private List&lt;Runnable&gt; legs;
    private ExecutorService execute;

    public LegController() {
        legs = new ArrayList&lt;&gt;();
        for (int i = 0; i &lt; 6; i++) {
            legs.add(LegFactory.getLeg("LEFT"));
        }

        execute = new Executors.newFixedThreadPool(6);
    }

    public void start(){

        //TODO
    }
}
</code></pre>

<p>But I get an error : "Cannot resolve symbol 'newFixedThreadPool'". 
I tried "Invalidate cache and restart" but it didn't help, I tried synchronise and rebuild project, but it didn't work either.</p>

<p>I don't understand where this problem is coming from because the class Executors is imported. Besides, there was autocompletion for the static methods of Executors. 
Maybe there is a problem in the importation, but if so, how could I fix it ? </p>