void (@NotNull String moduleName, @NotNull String expectedTaskProjectPath, @NotNull String expectedTaskPrefix) { for (DataNode<TaskData> node : ExternalSystemApiUtil .findAll(GradleUtil.findGradleModuleData(getModule(moduleName)), ProjectKeys.TASK)) { TaskData taskData = node.getData(); String actualTaskProjectPath = taskData.getLinkedExternalProjectPath(); expectedTaskProjectPath = FileUtil.toCanonicalPath(expectedTaskProjectPath); actualTaskProjectPath = FileUtil.toCanonicalPath(actualTaskProjectPath); assertEquals(expectedTaskProjectPath, actualTaskProjectPath); assertThat(taskData.getName()).startsWith(expectedTaskPrefix); } }