title: What should be the variable type for this Java method?
body: <p>This is related to <a href="https://stackoverflow.com/questions/60499809/custom-gradle-java-plugin-crashes-in-v5-2-1-but-worked-in-v4-7">Custom Gradle Java plugin crashes in v5.2.1, but worked in v4.7?</a>. Caveat - I'm not a Java programmer.</p>
  
  <p>I have this code to implement a Plugin, and it's crashing (per other post).</p>
  
  <pre><code>package com.zift.utilities;
  
  import org.gradle.api.Plugin;
  import org.gradle.api.Project;
  
  public class ZiftVersionPlugin implements Plugin&lt;Project&gt; {
      public void apply(Project project) {
          project.getTasks().create("manageVersion", ZiftVersion.class, (task) -&gt; {
              // Added breakpoint here, but it's never reached!
              task.setProject(project);
          });
      }
  }
  </code></pre>
  
  <p>I want to separate this line into 2 lines so I can debug better in IntelliJ. So from</p>
  
  <pre><code>project.getTasks().create(...)
  </code></pre>
  
  <p>...to</p>
  
  <pre><code>Vartype??? tasks = project.getTasks()
  tasks.create(...)
  </code></pre>
  
  <p>What should <code>Vartype</code> be for the <code>project.getTasks()</code> call? I just wanna set a breakpoint on both lines to see where it's crashing. Thanks.</p>