Collection<InlineWatch> (Document document) { VirtualFile file = FileDocumentManager.getInstance().getFile(document); if (file != null) { Set<InlineWatch> inlineWatches = this.inlineWatches.get(file.getUrl()); if (inlineWatches != null) { return new ArrayList<>(inlineWatches); } } return Collections.emptyList(); }