RefreshablePanel () { JPanel panel = JBUI.Panels.simplePanel(myDiffDetails.getComponent()); return new RefreshablePanel() { @Override public void refresh() { } @Override public JPanel getPanel() { return panel; } }; }