@NotNull @Override public Object getGradleKey( @NotNull GradleProject entity, @NotNull GradleChangesCalculationContext context) { // TODO den consider the known changes return entity.getName(); }
private static void checkName( @NotNull GradleProject gradleProject, @NotNull Project intellijProject, @NotNull Set<GradleProjectStructureChange> currentChanges) { String gradleName = gradleProject.getName(); String intellijName = intellijProject.getName(); if (!gradleName.equals(intellijName)) { currentChanges.add(new GradleProjectRenameChange(gradleName, intellijName)); } }