detekt-api
1.21.0-RC2

# from

fun from (element: PsiElement, offset: Int = 0): Entity
Content copied to clipboard

Factory function which retrieves all needed information from the PsiElement itself.

fun from (element: PsiElement, location: Location ): Entity
Content copied to clipboard

Use this factory method if the location can be calculated much more precisely than using the given PsiElement.