use of org.jetbrains.annotations.CalledWithReadLock in project intellij-community by JetBrains.
the class AnnotateStackTraceAction method getHyperlinkVirtualFile.
@Nullable
@CalledWithReadLock
private static VirtualFile getHyperlinkVirtualFile(@NotNull List<RangeHighlighter> links) {
RangeHighlighter key = ContainerUtil.getLastItem(links);
if (key == null)
return null;
HyperlinkInfo info = EditorHyperlinkSupport.getHyperlinkInfo(key);
if (!(info instanceof FileHyperlinkInfo))
return null;
OpenFileDescriptor descriptor = ((FileHyperlinkInfo) info).getDescriptor();
return descriptor != null ? descriptor.getFile() : null;
}
Aggregations