BeforeRunTask () { RunConfigurableBeforeRunTask task = new RunConfigurableBeforeRunTask(); if (mySettingsWithTarget != null) { task.setSettingsWithTarget(mySettingsWithTarget.first, mySettingsWithTarget.second); } task.typeNameTarget.setType(typeNameTarget.getType()); task.typeNameTarget.setName(typeNameTarget.getName()); task.typeNameTarget.setTargetId(typeNameTarget.getTargetId()); return task; }