@Nullable private VirtualFile getCurrentFile() { final Project project = getProject(); if (project == null) return null; EditorsSplitters splitters = FileEditorManagerEx.getInstanceEx(project).getSplittersFor(myStatusBar.getComponent()); return splitters.getCurrentFile(); }