Object (int rowIndex, int columnIndex) { MavenSearchIndex i = getIndex(rowIndex); return switch (columnIndex) { case 0 -> i.getRepositoryPathOrUrl(); case 1 -> switch (i.getKind()) { case LOCAL -> "Local"; case REMOTE -> "Remote"; case ONLINE -> "Online"; }; case 2 -> { if (i.getFailureMessage() != null) { yield IndicesBundle.message("maven.index.updated.error"); } long timestamp = i.getUpdateTimestamp(); if (timestamp == -1) yield IndicesBundle.message("maven.index.updated.never"); yield DateFormatUtil.formatDate(timestamp); } case 3 -> { MavenRepositoryInfo repository = i.getRepository(); if (repository == null) yield MavenIndexUpdateManager.IndexUpdatingState.IDLE; yield MavenSystemIndicesManager.getInstance().getUpdatingStateSync(myProject, repository); } default -> throw new RuntimeException(); }; }