boolean (@NotNull TreePath path) { Object lastComponent = path.getLastPathComponent(); if (!(lastComponent instanceof ChangesBrowserNode<?>)) return false; return isIncludable((ChangesBrowserNode<?>)lastComponent); }