rmrfchik commented on issue #4642:
URL: https://github.com/apache/netbeans/issues/4642#issuecomment-1252190440
```
import java.util.stream.IntStream;
import java.util.stream.Stream;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class DOM {
public static Stream<Node> selectTags(final Node node) {
return selectTags(node.getChildNodes());
}
public static Stream<Node> selectTags(final NodeList nodeList) {
return IntStream.range(0, nodeList.getLength())
.mapToObj(nodeList::item);
}
}
```
Try to Find Usages on selectTags(final NodeList nodeList);
It gives me "no occurrences". No exception is thrown.
There are following messages in messages.log:
```
INFO [org.netbeans.api.java.source.TreePathHandle]: Cannot resolve:
TreePathHandle[delegate:TreeDelegate[kind:METHOD,
enclosingElement:ElementHandle[kind=METHOD; sigs=ru.>
INFO [org.netbeans.api.java.source.ElementHandle]: Cannot resolve:
ElementHandle[kind=METHOD; sigs=ru.justnews.nbtest.DOM selectTags
(LNodeList;)Ljava/util/stream/Stream;>
```
Btw, when trying to refactor method name the following error appears:
`Error: The original element being refactored is not available. It was
deleted or significantly changed. Usages cannot be collected.`

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists