private static int getTabSize(@NotNull Project project) {
    try {
      return CodeStyle.getSettings(project).getTabSize(JavaFileType.INSTANCE);
    }
    catch (ProcessCanceledException e) {
      throw e;
    }
    catch (Exception e) {
      LOG.error("Cannot compute tab size", e);
      return CodeStyleDefaults.DEFAULT_TAB_SIZE;
    }
  }
private static int getTabSize(@NotNull Project project)