In build.gradle files you can use File directly like
def file = new File("file.txt")
And even if you import java.io.File manually ide says it's unused
But at the same time ide says that File is java.io.File class
I wonder what approach was used to achieve this behavior