File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
java/src/main/kotlin/cc/unitmesh/idea/service Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import com.intellij.openapi.roots.ProjectFileIndex
4
4
import com.intellij.psi.*
5
5
import com.intellij.psi.util.PsiTreeUtil
6
6
import com.intellij.psi.util.PsiUtil
7
- import org.jetbrains.annotations.NotNull
8
- import org.jetbrains.annotations.Nullable
9
7
10
8
object JavaRelatedContext {
11
9
fun findRelatedClassesAndCleanUp (method : PsiMethod ): List <PsiClass > {
@@ -33,7 +31,7 @@ object JavaRelatedContext {
33
31
return classDescription
34
32
}
35
33
36
- fun prepareContainingClassContext (@NotNull method : PsiMethod ): PsiClass ? {
34
+ fun prepareContainingClassContext (method : PsiMethod ): PsiClass ? {
37
35
val file = method.containingFile.copy() as PsiFile
38
36
val containingClass = method.containingClass ? : return null
39
37
val psiElement = PsiTreeUtil .findSameElementInCopy(method, file)
You can’t perform that action at this time.
0 commit comments