File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
marker/jvm-marker/src/main/kotlin/spp/jetbrains/marker/jvm Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,13 @@ class JVMLanguageProvider : LanguageProvider {
51
51
override fun canSetup () = classExists(" com.intellij.psi.PsiJavaFile" )
52
52
53
53
override fun setup (project : Project ) {
54
- SUPPORTED_FILE_TYPES .add(GroovyFile ::class .java)
55
- SUPPORTED_FILE_TYPES .add(KtFile ::class .java)
56
54
SUPPORTED_FILE_TYPES .add(PsiJavaFile ::class .java)
55
+ if (classExists(" org.jetbrains.plugins.groovy.lang.psi.GroovyFile" )) {
56
+ SUPPORTED_FILE_TYPES .add(GroovyFile ::class .java)
57
+ }
58
+ if (classExists(" org.jetbrains.kotlin.psi.KtFile" )) {
59
+ SUPPORTED_FILE_TYPES .add(KtFile ::class .java)
60
+ }
57
61
58
62
val endpointDetector = AggregateEndpointDetector (
59
63
project,
You can’t perform that action at this time.
0 commit comments