JComponent () { FileEditorManagerEx editorManager = FileEditorManagerEx.getInstanceEx(getProject()); EditorWindow window = editorManager.getSplitters().getCurrentWindow(); return (JComponent)((JComponent)window.getSelectedComposite().getComponent().getComponents()[0]).getComponents()[0]; }