FileAnnotation (@NotNull Editor editor) { TextAnnotationPresentation presentation = getAnnotationPresentation(editor); if (presentation instanceof AnnotationPresentation) return ((AnnotationPresentation)presentation).getFileAnnotation(); return null; }