public static GradleIdeManager getInstance() {
    return Optional.ofNullable(ApplicationManager.getApplication().getService(GradleIdeManager.class)).orElseGet(GradleIdeManager::new);
  }
public static GradleIdeManager getInstance()