@Nullable
@Override
public SourceCodeLoadErrorNotificationPanel createNotificationPanel(VirtualFile virtualFile, FileEditor fileEditor) {
if (virtualFile instanceof DatabaseEditableObjectFile) {
if (fileEditor instanceof SourceCodeEditor) {
DatabaseEditableObjectFile editableObjectFile = (DatabaseEditableObjectFile) virtualFile;
DBSchemaObject editableObject = editableObjectFile.getObject();
SourceCodeEditor sourceCodeEditor = (SourceCodeEditor) fileEditor;
SourceCodeFile sourceCodeFile = sourceCodeEditor.getVirtualFile();
String sourceLoadError = sourceCodeFile.getSourceLoadError();
if (StringUtil.isNotEmpty(sourceLoadError)) {
return createPanel(editableObject, sourceLoadError);