Skip to content

Commit

Permalink
Do not suggest methods from nested interfaces #1418 (#1450)
Browse files Browse the repository at this point in the history
Do not suggest methods from nested interfaces

Co-authored-by: Vassiliy Kudryashov <vassiliy.kudryashov@gmail.com>
  • Loading branch information
volivan239 and Vassiliy-Kudryashov authored Dec 9, 2022
1 parent dadb91b commit 7ba93d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private val PsiMember.isKotlinAutogeneratedMethod: Boolean
get() = this is KtLightMethod && navigationElement is KtClass

private val PsiMethod.canBeCalledStatically: Boolean
get() = isStatic || containingClass?.isStatic ?: throw IllegalStateException("No containing class found for method $this")
get() = isStatic || containingClass?.let { it.isStatic && !it.isInterface && !it.isAbstract } ?: throw IllegalStateException("No containing class found for method $this")

private val PsiMethod.isUntestableMethodOfAbstractOrInterface: Boolean
get() {
Expand Down

0 comments on commit 7ba93d6

Please sign in to comment.