please remove this method and use project.getScreenMode() directly