IntelliJ PHP自定义检查:如何调用visitPhpFunctionCall?

IntelliJ PHP自定义检查:如何调用visitPhpFunctionCall?,php,intellij-idea,Php,Intellij Idea,我正在制作一个IntelliJ插件,为PHP语言添加一些检查。在plugin.xml中,我声明了我的检查: <extensions defaultExtensionNs="com.intellij"> <localInspection language="PHP" groupPath="PHP,Php Inspections (MTA)" shortName="UnsafeCallToHeaderI

我正在制作一个IntelliJ插件,为PHP语言添加一些检查。在
plugin.xml
中,我声明了我的检查:

<extensions defaultExtensionNs="com.intellij">
    <localInspection
            language="PHP"
            groupPath="PHP,Php Inspections (MTA)"
            shortName="UnsafeCallToHeaderInspection"
            displayName="Unsafe call to 'header()' function"
            groupName="Security"
            enabledByDefault="true"
            level="ERROR"
            implementationClass="com.ge.sdc.intellij.mtaplugin.security.php.UnsafeCallToHeaderInspection"/>

</extensions>

<application-components>
    <component>
        <implementation-class>com.ge.sdc.intellij.mtaplugin.MtaApplicationComponent</implementation-class>
    </component>
</application-components>
但是,当我调试或运行插件,并打开一个PHP文件时,如下图所示:

<?php
header($headerName);

在再次遵循的提示之后,我发现我在错误的位置添加了错误的
php.jar

我必须使用
php.jar
来自沙盒的IntelliJ(
C:\Users\212636336\.IntelliJIdea2018.1\system\plugins沙盒
),而不是我用来开发插件的IntelliJ。这个jar必须位于这个沙盒IntellijSDK的类路径中,而不是像我那样添加为“外部库”

<?php
header($headerName);