Component (JTable table, Object value, boolean isSelected, int row, int column) { myCodeFragment = (PsiCodeFragment)value; myDocument = PsiDocumentManager.getInstance(myProject).getDocument(myCodeFragment); myEditorTextField = createEditorField(myDocument); if (myEditorTextField != null) { for (DocumentListener listener : myListeners) { myEditorTextField.addDocumentListener(listener); } myEditorTextField.setDocument(myDocument); myEditorTextField.setBorder(new LineBorder(table.getSelectionBackground())); } return myEditorTextField; }