List<CommonProblemDescriptor[]> (boolean sortedByPosition, @Nullable Set<? super VirtualFile> readOnlyFilesSink, boolean allowResolved, TreePath[] paths) { if (paths == null) { ThreadingAssertions.assertEventDispatchThread(); paths = getSelectionPaths(); } if (paths == null) return Collections.emptyList(); // key can be node or VirtualFile (if problem descriptor node parent is a file/member RefElementNode). //TODO expected thread List<InspectionTreeNode> nodes = ContainerUtil.map(paths, p -> (InspectionTreeNode)p.getLastPathComponent()); return getSelectedDescriptors(sortedByPosition, readOnlyFilesSink, allowResolved, nodes); }