@Nullable
        @Override
        public Object getPropertyValue(@NotNull String propertyName) {
            RCPProject project = DBPPlatformDesktop.getInstance().getWorkspace().getProject(projectFile.getProject());
            if (project == null) {
                log.debug("Project '" + projectFile.getProject() + "' not recognized (property read)");
                return null;
            }
            return EditorUtils.getResourceProperty(project, projectFile, propertyName);
        }
A {@link IResource}'s session property to distinguish between persisted and newly created resources.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/SQLEditorUtils.java