ConversionResult (@NotNull PsiType targetType, @NotNull PsiType actualType, @NotNull Position position, @NotNull GroovyPsiElement context) { if (CompileStaticUtil.isCompileStatic(context)) return isCSConvertible(targetType, actualType, position); if (position == Position.METHOD_PARAMETER) { return methodParameterConvert(targetType, actualType); } if (TypesUtil.isNumericType(targetType) && TypesUtil.isNumericType(actualType)) { return OK; } return null; }