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 {
5151 override fun canSetup () = classExists(" com.intellij.psi.PsiJavaFile" )
5252
5353 override fun setup (project : Project ) {
54- SUPPORTED_FILE_TYPES .add(GroovyFile ::class .java)
55- SUPPORTED_FILE_TYPES .add(KtFile ::class .java)
5654 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+ }
5761
5862 val endpointDetector = AggregateEndpointDetector (
5963 project,
You can’t perform that action at this time.
0 commit comments