IndexUtils { @Nullable public static String getAsyncLaneName(NodeState idxState, String indexPath) { return getAsyncLaneName(idxState, indexPath, idxState.getProperty(IndexConstants.ASYNC_PROPERTY_NAME)); } private  IndexUtils(); static NodeBuilder getOrCreateOakIndex(NodeBuilder root); static NodeBuilder createIndexDefinition(@NotNull NodeBuilder index,
                                                    @NotNull String indexDefName,
                                                    boolean reindex,
                                                    boolean unique,
                                                    @NotNull Collection<String> propertyNames,
                                                    @Nullable Collection<String> declaringNodeTypeNames); static Tree createIndexDefinition(@NotNull Tree indexNode,
                                             @NotNull String indexDefName,
                                             boolean unique,
                                             @NotNull String[] propertyNames,
                                             @NotNull String... declaringNodeTypeNames); static Tree createIndexDefinition(@NotNull Tree indexNode,
                                             @NotNull String indexDefName,
                                             boolean unique,
                                             @NotNull Collection<String> propertyNames,
                                             @Nullable Collection<String> declaringNodeTypeNames,
                                             @NotNull String propertyIndexType,
                                             @Nullable Map<String, String> properties); static void createReferenceIndex(@NotNull NodeBuilder index); static boolean isIndexNodeType(NodeState state); static boolean isIndexNodeType(NodeState state, String typeIn); static NodeBuilder createIndexDefinition(@NotNull NodeBuilder indexNode, 
                                             @NotNull String indexDefName, 
                                             boolean unique, 
                                             @NotNull Iterable<String> propertyNames, 
                                             @Nullable String[] declaringNodeTypeNames, 
                                             @NotNull String propertyIndexType,
                                             Map<String, String> properties); @Nullable static String getAsyncLaneName(NodeState idxState, String indexPath); @Nullable static String getAsyncLaneName(NodeState idxState, String indexPath, PropertyState async);  }
@Test public void asyncName() throws Exception { assertNull(IndexUtils.getAsyncLaneName(EMPTY_NODE, "/fooIndex")); NodeBuilder builder = EMPTY_NODE.builder(); builder.setProperty("async", newArrayList("async2", "sync"), Type.STRINGS); assertEquals("async2", IndexUtils.getAsyncLaneName(builder.getNodeState(), "/fooIndex")); builder.setProperty("async", newArrayList("async3"), Type.STRINGS); assertEquals("async3", IndexUtils.getAsyncLaneName(builder.getNodeState(), "/fooIndex")); }