void (Project project) { Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor(); if (editor != null) { editor.getContentComponent().revalidate(); editor.getContentComponent().repaint(); } }