Navigatable (@NotNull DefaultMutableTreeNode node) { Object userObject = node.getUserObject(); if (!(userObject instanceof ExecutionNode executionNode)) { return null; } if (node.getChildCount() != 0 || !executionNode.hasWarnings() && !executionNode.isFailed()) { return null; } List<Navigatable> navigatables = executionNode.getNavigatables(); if (!navigatables.isEmpty()) { return navigatables.get(0); } return null; }