JpsGradleArtifactExtension (JpsArtifact artifact, ArtifactBuildPhase buildPhase) { if (buildPhase == ArtifactBuildPhase.PRE_PROCESSING) { return JpsGradleExtensionService.getArtifactExtension(artifact); } return null; }