GroovyRunnableScriptType (@NotNull GroovyFile script) { GroovyScriptType scriptType = GroovyScriptTypeDetector.getScriptType(script); return scriptType == null ? DEFAULT_TYPE : (GroovyRunnableScriptType)scriptType; }