GroovyScriptType (@NotNull GroovyFile file) { for (GroovyScriptTypeDetector detector : EP_NAME.getExtensions()) { if (detector.isSpecificScriptFile(file)) { return detector.getScriptType(); } } return null; }